From 9feaa112fde3c0306def6676863fe62b78f6a794 Mon Sep 17 00:00:00 2001 From: mbm Date: Fri, 16 Jul 2004 05:43:10 +0000 Subject: openssh patches from below0 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@99 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../sources/openssh.server.S50sshd-ipk | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 obsolete-buildroot/sources/openssh.server.S50sshd-ipk (limited to 'obsolete-buildroot/sources/openssh.server.S50sshd-ipk') diff --git a/obsolete-buildroot/sources/openssh.server.S50sshd-ipk b/obsolete-buildroot/sources/openssh.server.S50sshd-ipk new file mode 100644 index 000000000..6f77ad9b1 --- /dev/null +++ b/obsolete-buildroot/sources/openssh.server.S50sshd-ipk @@ -0,0 +1,45 @@ +#!/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 $? + -- cgit v1.2.3