mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 14:21:06 +02:00
no start-stop-daemon
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@423 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
fb899479c5
commit
47f814e7a2
@ -1,7 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
|
||||||
# Starts dropbear sshd.
|
|
||||||
#
|
|
||||||
|
|
||||||
# Make sure the dropbearkey progam exists
|
# Make sure the dropbearkey progam exists
|
||||||
[ -f /usr/bin/dropbearkey ] || exit 0
|
[ -f /usr/bin/dropbearkey ] || exit 0
|
||||||
@ -30,35 +27,5 @@ fi
|
|||||||
|
|
||||||
umask 077
|
umask 077
|
||||||
|
|
||||||
start() {
|
/usr/sbin/dropbear
|
||||||
echo -n "Starting dropbear sshd: "
|
|
||||||
start-stop-daemon --start --quiet --pidfile /var/run/dropbear.pid --exec /usr/sbin/dropbear
|
|
||||||
echo "OK"
|
|
||||||
}
|
|
||||||
stop() {
|
|
||||||
echo -n "Stopping dropbear sshd: "
|
|
||||||
start-stop-daemon --stop --quiet --pidfile /var/run/dropbear.pid
|
|
||||||
echo "OK"
|
|
||||||
}
|
|
||||||
restart() {
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
start
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
stop
|
|
||||||
;;
|
|
||||||
restart|reload)
|
|
||||||
restart
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo $"Usage: $0 {start|stop|restart}"
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit $?
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user