aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-26 14:21:30 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-26 14:21:30 -0200
commitf7da3cd1c79c8bcecc08bd6831d8d56cc051fe8c (patch)
treeaf734d236f1a0a846bd5fdb57d454474d6b1f2af
parent36257396dca0e9e0b14b3db620d186f278432780 (diff)
downloadpuppet-nodo-f7da3cd1c79c8bcecc08bd6831d8d56cc051fe8c.tar.gz
puppet-nodo-f7da3cd1c79c8bcecc08bd6831d8d56cc051fe8c.tar.bz2
Just restart firewall when it is installed
-rw-r--r--files/etc/rc.local4
1 files changed, 3 insertions, 1 deletions
diff --git a/files/etc/rc.local b/files/etc/rc.local
index 8772152..572eb90 100644
--- a/files/etc/rc.local
+++ b/files/etc/rc.local
@@ -26,7 +26,9 @@ if [ -d "/proc/bus/usb" ]; then
fi
# Restart shorewall to make sure it gets virtual interfaces
-/etc/init.d/shorewall restart
+if [ -f '/etc/init.d/shorewall' ]; then
+ /etc/init.d/shorewall restart
+fi
# Then exit
exit 0