diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2021-09-12 14:35:03 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2021-09-12 14:35:03 -0500 |
commit | c33e58ef2cf138fbaf3f15d3a9d472e45959fec8 (patch) | |
tree | 8f3b721457f568e4ad95ea9b1f9fc719bd657296 | |
parent | 0a9053c2902adab8b94eaacdb15390441143078c (diff) | |
download | scripts-c33e58ef2cf138fbaf3f15d3a9d472e45959fec8.tar.xz scripts-c33e58ef2cf138fbaf3f15d3a9d472e45959fec8.zip |
umnt filter .*/boot$ & .*/efi$
-rwxr-xr-x | keyboard/umnt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboard/umnt b/keyboard/umnt index d43297d..a77dc65 100755 --- a/keyboard/umnt +++ b/keyboard/umnt @@ -1,5 +1,5 @@ #!/bin/sh -exclude='\/boot\/|\/home$|tbhdd$|\/$' +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/ .*//'`" \ |