aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-04-05 15:09:43 +0000
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-04-05 15:09:43 +0000
commit38397beb8eccb40c30ac1064d419e97f9d10c85c (patch)
tree51ebf21e09e06ad12b238ba7e3315077c40ce4ce /package/base-files/files
parentccb4fafc583cfdf09625e4ed697f324138bd579d (diff)
downloadupstream-38397beb8eccb40c30ac1064d419e97f9d10c85c.tar.gz
upstream-38397beb8eccb40c30ac1064d419e97f9d10c85c.tar.bz2
upstream-38397beb8eccb40c30ac1064d419e97f9d10c85c.zip
[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
Diffstat (limited to 'package/base-files/files')
-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
}