Consolidate sysupgrade.conf entries
Some checks are pending
ci/woodpecker/pull_request_closed/woodpecker Pipeline is pending
Some checks are pending
ci/woodpecker/pull_request_closed/woodpecker Pipeline is pending
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
1309eaaf11
commit
871e80eb35
@ -4,8 +4,6 @@
|
||||
START=96
|
||||
boot() {
|
||||
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
|
||||
[ -f "${LOCALCONFIGSCRIPT}" ] && {
|
||||
|
@ -13,6 +13,7 @@ cat > /etc/sysupgrade.conf <<-__EOF__
|
||||
/etc/config/gateway
|
||||
/etc/hoodfile
|
||||
/etc/nftables-fff.conf
|
||||
/etc/rc.local.fff_userconfig
|
||||
__EOF__
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user