mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
Force JFFS2 mount if not already mounted
This commit is contained in:
parent
9185f940b3
commit
42d62cd89a
1 changed files with 7 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
do_firstboot() {
|
||||||
|
if [ "$(mount | grep jffs2)" = "" ]; then
|
||||||
|
/sbin/firstboot -y
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
boot_hook_add preinit_main do_firstboot
|
Loading…
Reference in a new issue