diff options
author | B. Stack <bgstack15@gmail.com> | 2022-11-03 19:00:04 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-11-03 19:28:46 -0400 |
commit | ff8fb3958338891bc683b1ce510885f48eff4d17 (patch) | |
tree | 7142a4061d50de6475763e4b2443ee6c2ebe3f70 /src/usr/bin/netmounts-off | |
download | stackrpms-acer-chromebook-ff8fb3958338891bc683b1ce510885f48eff4d17.tar.gz stackrpms-acer-chromebook-ff8fb3958338891bc683b1ce510885f48eff4d17.tar.bz2 stackrpms-acer-chromebook-ff8fb3958338891bc683b1ce510885f48eff4d17.zip |
initial commit
Diffstat (limited to 'src/usr/bin/netmounts-off')
-rwxr-xr-x | src/usr/bin/netmounts-off | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usr/bin/netmounts-off b/src/usr/bin/netmounts-off new file mode 100755 index 0000000..1852a6c --- /dev/null +++ b/src/usr/bin/netmounts-off @@ -0,0 +1,3 @@ +#!/bin/sh +mounts="$( mount | awk '$5~/nfs/{print $3}' )" +for word in ${mounts} ; do umount -lv "${word}" ; done |