gluon-core: run gluon-reconfigure on boot when gluon.core.need_reconfigure is set

This commit is contained in:
Matthias Schiffer 2020-06-30 20:17:38 +02:00
parent cf0dc24463
commit 62e71fbc40
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
4 changed files with 19 additions and 1 deletions

View 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
}

View File

@ -0,0 +1,2 @@
#!/bin/sh
/etc/init.d/gluon-core-reconfigure start

View File

@ -1,3 +1,6 @@
#!/bin/sh #!/bin/sh
exec uci commit uci -q batch <<-EOF
delete gluon.core.reconfigure
commit
EOF

View File

@ -23,6 +23,7 @@ init_links := \
K99umount \ K99umount \
S00sysfixtime \ S00sysfixtime \
S10boot \ S10boot \
S10gluon-core-reconfigure \
S10system \ S10system \
S11sysctl \ S11sysctl \
S12log \ S12log \