From: Vasilis Tsiligiannis Date: Tue, 5 Apr 2011 15:09:32 +0000 (+0000) Subject: base-files: fix minor problem in init.d/boot X-Git-Tag: reboot~17012 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=48465d3d6367e6caf3ad211207af1942919b2e59;p=openwrt%2Fstaging%2Fxback.git 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 --- diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index 7927af1543..12f382502e 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 }