gluon-core: run gluon-reconfigure on boot when gluon.core.need_reconfigure is set
This commit is contained in:
parent
cf0dc24463
commit
62e71fbc40
12
package/gluon-core/files/etc/init.d/gluon-core-reconfigure
Executable file
12
package/gluon-core/files/etc/init.d/gluon-core-reconfigure
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh /etc/rc.common
|
||||||
|
|
||||||
|
# Start right after S10boot
|
||||||
|
START=10
|
||||||
|
|
||||||
|
start() {
|
||||||
|
config_load gluon
|
||||||
|
config_get_bool reconfigure core reconfigure 0
|
||||||
|
if [ "$reconfigure" = 1 ]; then
|
||||||
|
gluon-reconfigure
|
||||||
|
fi
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/etc/init.d/gluon-core-reconfigure start
|
@ -1,3 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
exec uci commit
|
uci -q batch <<-EOF
|
||||||
|
delete gluon.core.reconfigure
|
||||||
|
commit
|
||||||
|
EOF
|
||||||
|
@ -23,6 +23,7 @@ init_links := \
|
|||||||
K99umount \
|
K99umount \
|
||||||
S00sysfixtime \
|
S00sysfixtime \
|
||||||
S10boot \
|
S10boot \
|
||||||
|
S10gluon-core-reconfigure \
|
||||||
S10system \
|
S10system \
|
||||||
S11sysctl \
|
S11sysctl \
|
||||||
S12log \
|
S12log \
|
||||||
|
Loading…
Reference in New Issue
Block a user