]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Bugfixes. Seems to be working fine.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 3 Dec 2010 10:30:53 +0000 (10:30 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 3 Dec 2010 10:30:53 +0000 (10:30 +0000)
svn-id: @11930

rc.d/init.d/netfs

index 7bd6baab270ef05ba27aaaafd153f0f5aaddad02..f2d7c5c637db5b43c7a70b36a08102e24f0535aa 100755 (executable)
@@ -89,19 +89,19 @@ case "$1" in
        ;;
   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
This page took 0.03749 seconds and 4 git commands to generate.