From f2463372c9e35cf640f1b0ccede0314a239b0d25 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 1 Mar 2011 21:19:11 +0100 Subject: fix startup scripts, when variable is not set in /etc/rc.conf --- package/openssh/files/sshd.init | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'package/openssh/files/sshd.init') 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 -- cgit v1.2.3