projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upgrade wireless-tools to v28 pre13
[openwrt.git]
/
openwrt
/
package
/
base-files
/
default
/
etc
/
preinit
diff --git
a/openwrt/package/base-files/default/etc/preinit
b/openwrt/package/base-files/default/etc/preinit
index
88c8920
..
f82823e
100755
(executable)
--- a/
openwrt/package/base-files/default/etc/preinit
+++ b/
openwrt/package/base-files/default/etc/preinit
@@
-16,4
+16,14
@@
fi
mount_root ${FAILSAFE:+failsafe}
mount_root ${FAILSAFE:+failsafe}
+# automagically run firstboot
+[ -z "$FAILSAFE" -a -z "$(nvram get no_root_swap)" ] && {
+ { mount|grep "on / type jffs2" 1>&-; } || firstboot
+}
+
+grep sysfs /proc/filesystems >&- 2>&- && {
+ mkdir -p /sys
+ mount -t sysfs none /sys
+}
+
exec /sbin/init
exec /sbin/init
This page took
0.029081 seconds
and
4
git commands to generate.