From: Arne Fitzenreiter Date: Sat, 22 Jan 2011 23:31:04 +0000 (+0100) Subject: core45: start vpn-watch only if ipsec is enabled. X-Git-Tag: v2.9-core45~1^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaf12a485ec085c805f153b574059dc0600736c5;p=ipfire-2.x.git core45: start vpn-watch only if ipsec is enabled. --- diff --git a/config/rootfiles/core/45/update.sh b/config/rootfiles/core/45/update.sh index 69b61e367a..3229f745e1 100644 --- a/config/rootfiles/core/45/update.sh +++ b/config/rootfiles/core/45/update.sh @@ -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