diff options
author | Jan Wagner <mail@jwagner.eu> | 2016-03-12 19:01:13 +0100 |
---|---|---|
committer | Jan Wagner <mail@jwagner.eu> | 2016-03-12 19:01:13 +0100 |
commit | 94ac6dc790aa5066b623e9706bdf0c98f7d40aa7 (patch) | |
tree | 7993686c21c8bdd4fa46f1cfc22f1a8eeae0b6ad /bootstrap.d/21-firewall.sh | |
parent | da643e7838f268c85ac89832cf71c94685a4877a (diff) | |
download | rpi2-gen-image-94ac6dc790aa5066b623e9706bdf0c98f7d40aa7.tar.gz rpi2-gen-image-94ac6dc790aa5066b623e9706bdf0c98f7d40aa7.tar.bz2 rpi2-gen-image-94ac6dc790aa5066b623e9706bdf0c98f7d40aa7.zip |
code cleanup and even more spliting
Diffstat (limited to 'bootstrap.d/21-firewall.sh')
-rw-r--r-- | bootstrap.d/21-firewall.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstrap.d/21-firewall.sh b/bootstrap.d/21-firewall.sh index 89cf37f..e006e2b 100644 --- a/bootstrap.d/21-firewall.sh +++ b/bootstrap.d/21-firewall.sh @@ -37,8 +37,8 @@ if [ "$ENABLE_IPTABLES" = true ] ; then fi fi -# Remove SSHD related iptables rules if [ "$ENABLE_SSHD" = false ] ; then - sed -e '/^#/! {/SSH/ s/^/# /}' -i $R/etc/iptables/iptables.rules 2> /dev/null - sed -e '/^#/! {/SSH/ s/^/# /}' -i $R/etc/iptables/ip6tables.rules 2> /dev/null + # Remove SSHD related iptables rules + sed -i "/^#/! {/SSH/ s/^/# /}" $R/etc/iptables/iptables.rules 2> /dev/null + sed -i "/^#/! {/SSH/ s/^/# /}" $R/etc/iptables/ip6tables.rules 2> /dev/null fi |