diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-04-29 16:57:55 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-04-29 16:57:55 +0000 |
commit | 9507f89800bf73debbd25729e41eb322ae42db0e (patch) | |
tree | dcc9862e17a39da0fa2672e2d1a1d9d35f0ac65a /package | |
parent | 874f03ea007ec022c344bd2814aded1545650b5c (diff) | |
download | upstream-9507f89800bf73debbd25729e41eb322ae42db0e.tar.gz upstream-9507f89800bf73debbd25729e41eb322ae42db0e.tar.bz2 upstream-9507f89800bf73debbd25729e41eb322ae42db0e.zip |
create /dev/root on boot - fixes cf2nand on rb532
SVN-Revision: 7066
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/etc/init.d/boot | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index 8850311829..3461eab2fc 100755 --- a/package/base-files/files/etc/init.d/boot +++ b/package/base-files/files/etc/init.d/boot @@ -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/* } |