networking: don't fail if we can't restore firewall tables

I'm not sure if this happens on all images, but on a pi 4 networking
fails to initialize because there's no /etc/iptables/rules.v4.

That doesn't seem right, so let's ignore errors and allow networking.
This commit is contained in:
Andres Salomon 2020-06-26 01:40:08 -04:00
parent 462abf1d43
commit 6aed835e6c
1 changed files with 2 additions and 2 deletions

4
eth0
View File

@ -2,5 +2,5 @@ auto eth0
# TODO: switch back to iptables-persistent once it re-enters testing
iface eth0 inet dhcp
pre-up iptables-restore < /etc/iptables/rules.v4
pre-up ip6tables-restore < /etc/iptables/rules.v6
pre-up iptables-restore < /etc/iptables/rules.v4 || true
pre-up ip6tables-restore < /etc/iptables/rules.v6 || true