aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-04-05 15:09:43 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-04-05 15:09:43 +0000
commit980190367c7c4c05bb006b7deb7d9135d2b781e1 (patch)
tree8cb3e8d51c5fb9ee693b9792eea09ca5fce1ce2d /package
parent3549fb214f09a6dbcb8368238164a01526a0aa82 (diff)
downloadupstream-980190367c7c4c05bb006b7deb7d9135d2b781e1.tar.gz
upstream-980190367c7c4c05bb006b7deb7d9135d2b781e1.tar.bz2
upstream-980190367c7c4c05bb006b7deb7d9135d2b781e1.zip
base-files: Use -h instead of deprecated -L for symlink check
SVN-Revision: 26485
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index 12f382502e..c3019df04e 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
}