1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 02:48:37 +02:00

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7066 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-04-29 16:57:55 +00:00
parent bca7ac77bf
commit 2064758dc2

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/*
}