]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Just restart firewall when it is installed
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Jan 2012 16:21:30 +0000 (14:21 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Jan 2012 16:21:30 +0000 (14:21 -0200)
files/etc/rc.local

index 8772152c022e050978bfe73e71a04fbdc1020c98..572eb90cd92814247443a2ea1350847f842c613c 100644 (file)
@@ -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