--- network.org 2001-09-22 00:58:58.000000000 +0900 +++ network 2004-03-25 08:29:02.000000000 +0900 @@ -142,6 +142,11 @@ # If this is a final shutdown/halt, check for network FS, # and unmount them even if the user didn't turn on netfs + if [ `cat /proc/sys/kernel/real-root-dev` -eq 255 ] ; then + echo "Shutdown on NFS client" + sync; + else + if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then NFSMTAB=`grep -v '^#' /proc/mounts | awk '{ if ($3 ~ /^nfs$/ ) print $2}'` SMBMTAB=`grep -v '^#' /proc/mounts | awk '{ if ($3 ~ /^smbfs$/ ) print $2}'` @@ -156,6 +161,7 @@ action $"Shutting down interface $i: " ./ifdown $i boot fi done + case "$IPX" in yes|true) if [ "$IPXINTERNALNETNUM" != "0" ]; then @@ -176,6 +182,7 @@ fi fi fi + fi rm -f /var/lock/subsys/network ;;