forked from freifunk-franken/firmware
Consolidate sysupgrade.conf entries
Most of the entries in /etc/sysupgrade.conf are generated by a uci-defaults script in the fff-sysupgrade package. The only entry added in a different place is rc.local.fff_userconfig. Consolidate all entries to be added by the uci-defaults script in fff-sysupgrade. Signed-off-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
parent
6acdc6efa1
commit
daa25fded8
|
@ -4,8 +4,6 @@
|
||||||
START=96
|
START=96
|
||||||
boot() {
|
boot() {
|
||||||
LOCALCONFIGSCRIPT="/etc/rc.local.fff_userconfig"
|
LOCALCONFIGSCRIPT="/etc/rc.local.fff_userconfig"
|
||||||
#add LOCALCONFIGSCRIPT to sysupgrade regardless if it already exists or not to prevent data loss
|
|
||||||
grep -q ^"${LOCALCONFIGSCRIPT}"$ /etc/sysupgrade.conf || echo "$LOCALCONFIGSCRIPT" >> /etc/sysupgrade.conf
|
|
||||||
|
|
||||||
# process user commands
|
# process user commands
|
||||||
[ -f "${LOCALCONFIGSCRIPT}" ] && {
|
[ -f "${LOCALCONFIGSCRIPT}" ] && {
|
||||||
|
|
|
@ -13,6 +13,7 @@ cat > /etc/sysupgrade.conf <<-__EOF__
|
||||||
/etc/config/gateway
|
/etc/config/gateway
|
||||||
/etc/hoodfile
|
/etc/hoodfile
|
||||||
/etc/nftables-fff.conf
|
/etc/nftables-fff.conf
|
||||||
|
/etc/rc.local.fff_userconfig
|
||||||
__EOF__
|
__EOF__
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue