summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-04-05 15:09:32 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-04-05 15:09:32 +0000
commit48465d3d6367e6caf3ad211207af1942919b2e59 (patch)
tree89d7a331bc9f86d5f0d6651e6e74d3fa7c5738fe /package/base-files/files/etc
parent9d54c7aaafecd0df9c60da06b0515673ebcd01f5 (diff)
downloadmtk-20170518-48465d3d6367e6caf3ad211207af1942919b2e59.zip
mtk-20170518-48465d3d6367e6caf3ad211207af1942919b2e59.tar.gz
mtk-20170518-48465d3d6367e6caf3ad211207af1942919b2e59.tar.bz2
base-files: fix minor problem in init.d/boot
The script tests for the existance of /dev/root with test -e which fails if /dev/root is a dangling symlink making the call to ln fail. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de> SVN-Revision: 26483
Diffstat (limited to 'package/base-files/files/etc')
-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 7927af1..12f3825 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 ] || {
+ [ -e /dev/root -o -L /dev/root ] || {
rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline)
[ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
}