[package] base-files: Use -h instead of deprecated -L for symlink check
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 5 Apr 2011 15:09:43 +0000 (15:09 +0000)
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 5 Apr 2011 15:09:43 +0000 (15:09 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26485 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/init.d/boot

index 12f3825..c3019df 100755 (executable)
@@ -74,7 +74,7 @@ start() {
        done
 
        # create /dev/root if it doesn't exist
-       [ -e /dev/root -o -L /dev/root ] || {
+       [ -e /dev/root -o -h /dev/root ] || {
                rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline)
                [ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
        }
This page took 0.026728 seconds and 4 git commands to generate.