summaryrefslogtreecommitdiff
path: root/keyboard/umnt
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-10-11 15:08:51 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2021-10-11 15:08:51 -0500
commit2cf3ea2f828f6da07adff92a7dc5bce6069620ab (patch)
tree213dabd2d9301d3930f47f2a03c901dfbb100297 /keyboard/umnt
parent551e1c638a6a4ff2130b3c374774f6006b28467d (diff)
downloadscripts-2cf3ea2f828f6da07adff92a7dc5bce6069620ab.tar.xz
scripts-2cf3ea2f828f6da07adff92a7dc5bce6069620ab.zip
sinking
Diffstat (limited to 'keyboard/umnt')
-rwxr-xr-xkeyboard/umnt4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboard/umnt b/keyboard/umnt
index a77dc65..8191047 100755
--- a/keyboard/umnt
+++ b/keyboard/umnt
@@ -2,7 +2,7 @@
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 "`echo $mountedpartition | sed 's/ .*//'`" \
- && notify-send --urgency low "Device Successfully Unmounted" "Partition \"$mountedpartition\" successfully unmounted" \
+ 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