summaryrefslogtreecommitdiff
path: root/package/openssh/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-03-01 21:19:11 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-03-01 21:19:11 +0100
commitf2463372c9e35cf640f1b0ccede0314a239b0d25 (patch)
treed0136965860008a32e72bfac7442bc35d694758c /package/openssh/files
parent72a7d18f2fa0330212333dd95c18f2278c021cee (diff)
fix startup scripts, when variable is not set in /etc/rc.conf
Diffstat (limited to 'package/openssh/files')
-rw-r--r--package/openssh/files/sshd.init3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/openssh/files/sshd.init b/package/openssh/files/sshd.init
index f678349a1..5953abef2 100644
--- a/package/openssh/files/sshd.init
+++ b/package/openssh/files/sshd.init
@@ -1,13 +1,12 @@
#!/bin/sh
#PKG openssh-server
#INIT 50
-
. /etc/rc.conf
case $1 in
autostop) ;;
autostart)
- [[ $openssh = NO ]] && exit 0
+ test x"${openssh:-NO}" = x"NO" && exit 0
grep "^dropbear" /etc/rc.conf >/dev/null 2>&1 || dropbear=NO
if [[ $openssh = AUTO && $dropbear != NO ]]; then
echo openssh not starting: set to AUTO and dropbear is enabled