summaryrefslogtreecommitdiff
path: root/package/openssh/files/sshd.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/openssh/files/sshd.init')
-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