summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2020-06-26 01:40:08 -0400
committerAndres Salomon <dilinger@queued.net>2020-06-26 01:40:08 -0400
commit6aed835e6c147addc6638e797e0bb117b62f6bcb (patch)
treeb0738dee9a930ed0a98f5648480377c72c1b56d9
parent462abf1d43ca3c9037f9fc8a3a36674082dc2d0a (diff)
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.
-rw-r--r--eth04
1 files changed, 2 insertions, 2 deletions
diff --git a/eth0 b/eth0
index 8732488..adc5227 100644
--- a/eth0
+++ b/eth0
@@ -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