dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit 462fd39ce270ae0ef61e407f8a7b0c912fb4f9fb
parent d4e05850f08c1225cc5bcd99b34221d69bb8eed0
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 15 Apr 2018 15:03:21 +0000

.bin: Remove u-lo.

Diffstat:
.bin/u-lo | 42------------------------------------------
1 file changed, 0 insertions(+), 42 deletions(-)

diff --git a/.bin/u-lo b/.bin/u-lo @@ -1,42 +0,0 @@ -#!/usr/bin/zsh -# -# Copyright (C) 2016 rsiddharth <s@ricketyspace.net> -# -# This program is free software: you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program (see COPYING). If not, see -# <http://www.gnu.org/licenses/>. - -# unmount loop back device encrypted with cryptsetup -LO_NAME=$1 -LO_FILE_PATH=$2 - -[[ -z $LO_NAME ]] && - echo "ERROR: zarking give the name of loop device." && - exit 1 - -[[ -z $LO_FILE_PATH || ! -f $LO_FILE_PATH ]] && - echo 'ERROR: File path got fucked' && - exit 1 - -# unmount it -umnt $HOME/.mnt/$LO_NAME - -# remove mount directory -rmdir $HOME/.mnt/$LO_NAME - -# close loop back device -cryptsetup close $LO_NAME - -# detach -LO_DEV=$(losetup -n -O name -j $LO_FILE_PATH) -losetup -d $LO_DEV