From ff8fb3958338891bc683b1ce510885f48eff4d17 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Thu, 3 Nov 2022 19:00:04 -0400 Subject: initial commit --- src/usr/bin/netmounts-off | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 src/usr/bin/netmounts-off (limited to 'src/usr/bin/netmounts-off') 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 -- cgit