tadd command to list possible devices for webadmin - coffin - secure lan file storage on a device HTML git clone git://parazyd.org/coffin.git DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- DIR commit 8987dce7dea1e2ccdc50427cfa5a37aaef6cf7b7 DIR parent 4ea2ed3d1e812aed5e82b9b084ed9618b76a3c7b HTML Author: parazyd <parazyd@dyne.org> Date: Fri, 5 Feb 2016 16:56:42 +0100 add command to list possible devices for webadmin Diffstat: M bin/sacrist | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- DIR diff --git a/bin/sacrist b/bin/sacrist t@@ -22,6 +22,9 @@ echo "Device UUID is: $keyuuid" echo "I am $happenz" # end debugs +# echo partitions to file for webadmin +lsblk -npl | awk -F" " '{print $1}' | grep ^/dev/sd.. > /home/parazyd/devel/tombox/web/devs + _mountkey() { mkdir -p $keymount mount $device $keymount t@@ -67,7 +70,7 @@ if [[ $happenz == "CREATE" ]]; then cp $tmptombs $temptombs grep -v "$keyhash" $temptombs > $tmptombs; _msg info "Put stuff in $tmptombs" rm $temptombs - umount $keymount; rmdir $keymount; _msg info "Unmounted usb" + umount $keymount; rmdir $keymount; _msg info "Unmounted usb" elif [[ $happenz == "open" ]]; then _msg info "Comparekey false" _get_ttab