SVN: rc-scripts/trunk/rc.d/init.d/netfs
arekm
arekm at pld-linux.org
Fri Dec 3 11:30:53 CET 2010
Author: arekm
Date: Fri Dec 3 11:30:53 2010
New Revision: 11930
Modified:
rc-scripts/trunk/rc.d/init.d/netfs
Log:
Bugfixes. Seems to be working fine.
Modified: rc-scripts/trunk/rc.d/init.d/netfs
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/netfs (original)
+++ rc-scripts/trunk/rc.d/init.d/netfs Fri Dec 3 11:30:53 2010
@@ -89,19 +89,19 @@
;;
stop)
# Unmount loopback stuff first
- [ "$EUID" != "0" ] && exit 4
+ [ "$(id -u)" != "0" ] && exit 4
__umount_loopback_loop
if [ -n "$NETDEVMTAB" ]; then
__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
/etc/mtab \
- $(nls "Unmounting network block filesystems: ") \
- $(nls "Unmounting network block filesystems (retry): ")
+ "$(nls "Unmounting network block filesystems: ")" \
+ "$(nls "Unmounting network block filesystems (retry): ")"
fi
if [ -n "$NFSMTAB" ]; then
__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
/proc/mounts \
- $(nls "Unmounting NFS filesystems: ") \
- $(nls "Unmounting NFS filesystems (retry): ") \
+ "$(nls "Unmounting NFS filesystems: ")" \
+ "$(nls "Unmounting NFS filesystems (retry): ")" \
"-f -l"
fi
[ -n "$CIFSMTAB" ] && run_cmd "Unmounting CIFS filesystems: " umount -a -t cifs
More information about the pld-cvs-commit
mailing list