core45: start vpn-watch only if ipsec is enabled.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 22 Jan 2011 23:31:04 +0000 (00:31 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 22 Jan 2011 23:31:04 +0000 (00:31 +0100)
config/rootfiles/core/45/update.sh

index 69b61e3..3229f74 100644 (file)
@@ -54,8 +54,10 @@ echo Starting Proxy
 /etc/init.d/squid start 2>/dev/null
 echo Rewriting Outgoing FW Rules
 /var/ipfire/outgoing/bin/outgoingfw.pl
-echo Starting vpn-watch
-/usr/local/bin/vpn-watch &
+if [ `grep "ENABLED=on" /var/ipfire/vpn/setting` ]; then
+       echo Starting vpn-watch
+       /usr/local/bin/vpn-watch &
+fi
 
 #
 #Update Language cache