mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 19:33:08 +02:00
[package] base-files: Use -h instead of deprecated -L for symlink check
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26485 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9975b770c8
commit
f6d755eda4
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user