Mercurial > dropbear
diff debian/dropbear.init @ 524:3c3cef8a32e6 maemo
- Make it do the postinst files etc for dropbear-server
- Improve the NO_START message
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 18 Nov 2008 23:15:24 +0000 |
parents | 8c2d2edadf2a |
children |
line wrap: on
line diff
--- a/debian/dropbear.init Tue Nov 18 13:55:57 2008 +0000 +++ b/debian/dropbear.init Tue Nov 18 23:15:24 2008 +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