From f6d755eda4c0e0a068aa8de2504e16ab81a20bc0 Mon Sep 17 00:00:00 2001 From: acinonyx Date: Tue, 5 Apr 2011 15:09:43 +0000 Subject: [package] base-files: Use -h instead of deprecated -L for symlink check git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26485 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/init.d/boot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index 12f382502..c3019df04 100755 --- a/package/base-files/files/etc/init.d/boot +++ b/package/base-files/files/etc/init.d/boot @@ -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 } -- cgit v1.2.3