Skip to content
Snippets Groups Projects
Commit 1c654d95 authored by Bob Mottram's avatar Bob Mottram
Browse files

Create network directory if necessary

parent 6e15e226
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ function save_firewall_settings {
iptables-save > /etc/firewall.conf
ip6tables-save > /etc/firewall6.conf
if [ ! -d /etc/network/if-up.d ]; then
mkdir /etc/network/if-up.d
mkdir -p /etc/network/if-up.d
fi
printf '#!/bin/sh\n' > /etc/network/if-up.d/iptables
printf 'iptables-restore < /etc/firewall.conf\n' >> /etc/network/if-up.d/iptables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment