chiark / gitweb /
Import release 0.1.18
[secnet.git] / debian / init
index 75c21af60c4760be3690e05503b80692bd0875fc..18c273ab3e3345cbeb454fdab8e9150dfd78867f 100644 (file)
@@ -20,8 +20,9 @@ DESC="VPN server"
 
 test -f $DAEMON || exit 0
 test -f /etc/secnet/secnet.conf || exit 0
+test -f /etc/default/secnet && . /etc/default/secnet
 
-set -e
+[ "X$RUN_SECNET" = "Xyes" ] || exit 0
 
 case "$1" in
   start)