]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- no bashism, typo
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 2 Mar 2009 12:39:24 +0000 (12:39 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 2 Mar 2009 12:39:24 +0000 (12:39 +0000)
svn-id: @10159

rc.d/rc.sysinit

index 18633060efa000a41f67da3ce66216ea9f9ad48c..adbb6f0d9b26c856364a4446c61da077b136f6f6 100755 (executable)
@@ -431,9 +431,9 @@ if ! is_yes "$VSERVER"; then
                fi
        fi
 
-       _ROOTFS_RO=$(awk '($1 !~ /^#/ && $2 == "/" && ($4 == "ro" || $4 ~ /,ro$// || $4 ~ /^ro,/ || $4 ~ /,ro,/ ) && NF >= 6) { print "ro" }' /etc/fstab)
+       _ROOTFS_RO=$(awk '($1 !~ /^#/ && $2 == "/" && ($4 == "ro" || $4 ~ /,ro$/ || $4 ~ /^ro,/ || $4 ~ /,ro,/ ) && NF >= 6) { print "ro" }' /etc/fstab)
        # Remount the root filesystem read-write
-       if [ "x$_ROOTFS_RO" == "x" ] ; then
+       if [ -z "$_ROOTFS_RO" ]; then
                run_cmd "Remounting root filesystem in rw mode" mount -n -o remount,rw /
        fi
 
This page took 0.050267 seconds and 4 git commands to generate.