Files
openrouter/rootfs/etc/init.d/ssh
T

28 lines
575 B
Bash
Executable File

#!/bin/sh
Green='\033[0;32m'
Color_off='\033[0m'
Red='\033[0;31m'
. /etc/init.d/init-functions
case "$1" in
start)
notify "Starting sshd "
/usr/bin/sshd -D &
check $?
;;
stop)
notify "Stopping sshd "
killall sshd
check $?
;;
restart|reload)
"$0" stop
"$0" start
;;
*)
echo "sshd init script usage: $0 {start|stop|restart}"
return 1
esac
return $?