summaryrefslogtreecommitdiff
path: root/src/usr/bin/netmounts-off
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-11-03 19:00:04 -0400
committerB. Stack <bgstack15@gmail.com>2022-11-03 19:28:46 -0400
commitff8fb3958338891bc683b1ce510885f48eff4d17 (patch)
tree7142a4061d50de6475763e4b2443ee6c2ebe3f70 /src/usr/bin/netmounts-off
downloadstackrpms-thinkpad-p50s-ff8fb3958338891bc683b1ce510885f48eff4d17.tar.gz
stackrpms-thinkpad-p50s-ff8fb3958338891bc683b1ce510885f48eff4d17.tar.bz2
stackrpms-thinkpad-p50s-ff8fb3958338891bc683b1ce510885f48eff4d17.zip
initial commit
Diffstat (limited to 'src/usr/bin/netmounts-off')
-rwxr-xr-xsrc/usr/bin/netmounts-off3
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
bgstack15