projects
/
openwrt
/
staging
/
thess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
874f03e
)
create /dev/root on boot - fixes cf2nand on rb532
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 29 Apr 2007 16:57:55 +0000
(16:57 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 29 Apr 2007 16:57:55 +0000
(16:57 +0000)
SVN-Revision: 7066
package/base-files/files/etc/init.d/boot
patch
|
blob
|
history
diff --git
a/package/base-files/files/etc/init.d/boot
b/package/base-files/files/etc/init.d/boot
index 8850311829ec42232b08e90ecd90fbc09102d733..3461eab2fc2b0a4b0860fdd585c5922e915e8837 100755
(executable)
--- 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/*
}