diff debian/dropbear.init @ 549:7f552ea5bf72 maemo

merge of '3450609f92928775614418f40dd44ed5393d9de4' and '6a58c90036c543b4d992489843a999156f665e61'
author Matt Johnston <matt@ucc.asn.au>
date Wed, 01 Jul 2009 05:14:51 +0000
parents 3c3cef8a32e6
children
line wrap: on
line diff
--- a/debian/dropbear.init	Wed Jul 01 05:14:05 2009 +0000
+++ b/debian/dropbear.init	Wed Jul 01 05:14:51 2009 +0000
@@ -38,7 +38,7 @@
 
 case "$1" in
   start)
-	test "$NO_START" = "0" || cancel 'NO_START is not set to zero.'
+	test "$NO_START" = "0" || cancel '/etc/default/dropbear NO_START is set, Dropbear will not run.'
 	echo -n "Starting $DESC: "
 	start-stop-daemon --start --quiet --pidfile /var/run/"$NAME".pid \
 	  --exec "$DAEMON" -- -d "$DROPBEAR_DSSKEY" -r "$DROPBEAR_RSAKEY" \
@@ -51,7 +51,7 @@
 	echo "$NAME."
 	;;
   restart|force-reload)
-	test "$NO_START" = "0" || cancel 'NO_START is not set to zero.'
+	test "$NO_START" = "0" || cancel '/etc/default/dropbear NO_START is set, Dropbear will not run.'
 	echo -n "Restarting $DESC: "
 	start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/"$NAME".pid
 	sleep 1