summaryrefslogtreecommitdiff
path: root/.old/umnt
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2024-11-17 23:39:40 -0600
committerTim Keller <tjkeller.xyz>2024-11-17 23:39:40 -0600
commit08f22ad82edbe30606a8145a01ab18f2f6d71b4b (patch)
treecce5c45c996d81d131ada2f409a3c6d041b5416e /.old/umnt
parent09ada24d4ec23cf24ab136141b354953d1bbc2fa (diff)
downloadscripts-08f22ad82edbe30606a8145a01ab18f2f6d71b4b.tar.xz
scripts-08f22ad82edbe30606a8145a01ab18f2f6d71b4b.zip
delete .old dir since all is still stored in version control
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