create /dev/root on boot - fixes cf2nand on rb532

SVN-Revision: 7066
This commit is contained in:
Felix Fietkau 2007-04-29 16:57:55 +00:00
parent 874f03ea00
commit 9507f89800
1 changed files with 6 additions and 0 deletions

View File

@ -35,5 +35,11 @@ start() {
/sbin/hotplug2 --persistent --max-children 5 &
echo /sbin/hotplug-call > /proc/sys/kernel/hotplug
# create /dev/root if it doesn't exist
[ -e /dev/root ] || {
rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline)
[ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
}
load_modules /etc/modules.d/*
}