Browse Source

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 <[email protected]>

SVN-Revision: 26483
Vasilis Tsiligiannis 15 years ago
parent
commit
48465d3d63
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/base-files/files/etc/init.d/boot

+ 1 - 1
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
 	}