diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-08-18 04:11:57 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-08-18 04:11:57 (GMT) |
commit | a1521d388a79d6792af788406224c3963e77c765 (patch) | |
tree | 2bda56e29a3b5f7ff7621f4b1df9d2eca405aba0 /abs/mv-core/openssh/sshd | |
parent | 4a416bea72be751fe503edebe21c8708c0e5dce4 (diff) | |
parent | 9800bb0789a9b3655a679e996841bdb51a609d22 (diff) | |
download | linhes_pkgbuild-a1521d388a79d6792af788406224c3963e77c765.zip linhes_pkgbuild-a1521d388a79d6792af788406224c3963e77c765.tar.gz linhes_pkgbuild-a1521d388a79d6792af788406224c3963e77c765.tar.bz2 |
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/mv-core/openssh/sshd')
-rwxr-xr-x | abs/mv-core/openssh/sshd | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/abs/mv-core/openssh/sshd b/abs/mv-core/openssh/sshd deleted file mode 100755 index 875028a..0000000 --- a/abs/mv-core/openssh/sshd +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/conf.d/sshd - -PID=`cat /var/run/sshd.pid 2>/dev/null` -case "$1" in - start) - stat_busy "Starting Secure Shell Daemon" - [ -f /etc/ssh/ssh_host_key ] || { /usr/bin/ssh-keygen -t rsa1 -N "" -f /etc/ssh/ssh_host_key >/dev/null; } - [ -f /etc/ssh/ssh_host_rsa_key ] || { /usr/bin/ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key >/dev/null; } - [ -f /etc/ssh/ssh_host_dsa_key ] || { /usr/bin/ssh-keygen -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key >/dev/null; } - [ -z "$PID" ] && /usr/sbin/sshd $SSHD_ARGS - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon sshd - stat_done - fi - ;; - stop) - stat_busy "Stopping Secure Shell Daemon" - [ ! -z "$PID" ] && kill $PID &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon sshd - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 |