summaryrefslogtreecommitdiffstats
path: root/abs/core/initscripts/rc.shutdown.patch
blob: 973ff416c504be27ed73231fda45934243d823fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- rc.shutdown.orig	2011-06-09 22:23:09.000000000 +0000
+++ rc.shutdown	2011-07-31 02:47:22.686835949 +0000
@@ -51,6 +51,17 @@
 fi
 
 stat_busy "Unmounting Filesystems"
+#unmount network filesystems for runit
+INIT=`ps -p1 -o comm=`
+if [ x$INIT = xrunit ]
+then
+	if [ -e /var/services/netfs ]
+	then
+	   /etc/rc.d/netfs stop
+	fi
+fi
+
+
 if /bin/grep -q devtmpfs /proc/filesystems &>/dev/null; then
 	/bin/umount -a -r -t nosysfs,noproc,nodevtmpfs,nodevpts -O no_netdev
 else