diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-01 21:19:11 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-01 21:19:11 +0100 |
commit | f2463372c9e35cf640f1b0ccede0314a239b0d25 (patch) | |
tree | d0136965860008a32e72bfac7442bc35d694758c /package/openldap | |
parent | 72a7d18f2fa0330212333dd95c18f2278c021cee (diff) |
fix startup scripts, when variable is not set in /etc/rc.conf
Diffstat (limited to 'package/openldap')
-rw-r--r-- | package/openldap/files/slapd.init | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/openldap/files/slapd.init b/package/openldap/files/slapd.init index 60f717927..f026bfef4 100644 --- a/package/openldap/files/slapd.init +++ b/package/openldap/files/slapd.init @@ -1,13 +1,12 @@ #!/bin/sh #PKG openldap-slapd #INIT 70 - . /etc/rc.conf case $1 in autostop) ;; autostart) - [[ $slapd = NO ]] && exit 0 + test x"${slapd:-NO}" = x"NO" && exit 0 exec sh $0 start ;; start) |