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 <[email protected]> --- package/base-files/files/etc/init.d/boot | 2 +- 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 } -- 1.7.2.5 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
