base-files: Use -h instead of deprecated -L for symlink check
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 5 Apr 2011 15:09:43 +0000 (15:09 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Tue, 5 Apr 2011 15:09:43 +0000 (15:09 +0000)
SVN-Revision: 26485

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

index 12f382502ecef70475917c60d896d3ba823f7b7a..c3019df04ecdbf7251de195a53b9b54f2292248a 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
        }