mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 18:59:13 +08:00
base-files: Use -h instead of deprecated -L for symlink check
SVN-Revision: 26485
This commit is contained in:
parent
3549fb214f
commit
980190367c
@ -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…
x
Reference in New Issue
Block a user