summaryrefslogtreecommitdiff
path: root/.old/umnt
diff options
context:
space:
mode:
Diffstat (limited to '.old/umnt')
-rwxr-xr-x.old/umnt8
1 files changed, 0 insertions, 8 deletions
diff --git a/.old/umnt b/.old/umnt
deleted file mode 100755
index 8191047..0000000
--- a/.old/umnt
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-exclude='\/efi$|\/boot$|\/home$|tbhdd$|\/$'
-if mountedpartition=`lsblk --noheadings --paths --raw | awk "/part .+/ && !/$exclude/ "'{ print $1, "(on", $7 ")" }' | dmenu -p "Unmount Device... "`
-then
- doas umount -A "`echo $mountedpartition | sed 's/ .*//'`" \
- && notify-send --urgency low "Device Successfully Unmounted" "Partition \"$mountedpartition\" successfully unmounted" --time 120000 \
- || notify-send --urgency low "Error Unmounting Device" "Could not unmount partition \"$mountedpartition\""
-fi