1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-20 00:55:21 +02:00
openwrt-xburst/obsolete-buildroot/sources/openwrt/ipkg/openssh/openssh.server.S50sshd-ipk
mbm 1dfdb01703 restructure; cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@120 3c298f89-4303-0410-b956-a3cf2f4a3e73
2004-07-31 07:30:57 +00:00

46 lines
483 B
Bash

#!/bin/sh
#
# sshd Starts sshd.
#
mkdir -p /var/lock
mkdir -p /var/empty
chmod 600 /var/empty
umask 077
start() {
echo -n "Starting sshd: "
/usr/sbin/sshd
touch /var/lock/sshd
echo "OK"
}
stop() {
echo -n "Stopping sshd: "
killall sshd
rm -f /var/lock/sshd
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 $?