Create network directory if necessary
This commit is contained in:
parent
6e15e2265d
commit
1c654d953b
|
@ -38,7 +38,7 @@ function save_firewall_settings {
|
||||||
iptables-save > /etc/firewall.conf
|
iptables-save > /etc/firewall.conf
|
||||||
ip6tables-save > /etc/firewall6.conf
|
ip6tables-save > /etc/firewall6.conf
|
||||||
if [ ! -d /etc/network/if-up.d ]; then
|
if [ ! -d /etc/network/if-up.d ]; then
|
||||||
mkdir /etc/network/if-up.d
|
mkdir -p /etc/network/if-up.d
|
||||||
fi
|
fi
|
||||||
printf '#!/bin/sh\n' > /etc/network/if-up.d/iptables
|
printf '#!/bin/sh\n' > /etc/network/if-up.d/iptables
|
||||||
printf 'iptables-restore < /etc/firewall.conf\n' >> /etc/network/if-up.d/iptables
|
printf 'iptables-restore < /etc/firewall.conf\n' >> /etc/network/if-up.d/iptables
|
||||||
|
|
Loading…
Reference in New Issue