Compare commits
2 Commits
master
...
user-firew
Author | SHA1 | Date |
---|---|---|
Fabian Bläse | 871e80eb35 | |
Fabian Bläse | 1309eaaf11 |
|
@ -0,0 +1 @@
|
||||||
|
nft -f /etc/nftables-fff.conf
|
|
@ -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}" ] && {
|
||||||
|
|
|
@ -12,6 +12,8 @@ cat > /etc/sysupgrade.conf <<-__EOF__
|
||||||
/etc/config/fff
|
/etc/config/fff
|
||||||
/etc/config/gateway
|
/etc/config/gateway
|
||||||
/etc/hoodfile
|
/etc/hoodfile
|
||||||
|
/etc/nftables-fff.conf
|
||||||
|
/etc/rc.local.fff_userconfig
|
||||||
__EOF__
|
__EOF__
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue