1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 06:53:21 +02:00

[package] 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26483 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acinonyx 2011-04-05 15:09:32 +00:00
parent 6e29b97896
commit fdf5c18152

View File

@ -74,7 +74,7 @@ start() {
done done
# create /dev/root if it doesn't exist # 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) rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline)
[ -n "$rootdev" ] && ln -s "$rootdev" /dev/root [ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
} }