Просмотр исходного кода

base-files: Use -h instead of deprecated -L for symlink check

SVN-Revision: 26485
Vasilis Tsiligiannis 14 лет назад
Родитель
Сommit
980190367c
1 измененных файлов с 1 добавлено и 1 удалено
  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 -o -L /dev/root ] || {
+	[ -e /dev/root -o -h /dev/root ] || {
 		rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline)
 		[ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
 	}