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/net-snmp/files | |
parent | 72a7d18f2fa0330212333dd95c18f2278c021cee (diff) |
fix startup scripts, when variable is not set in /etc/rc.conf
Diffstat (limited to 'package/net-snmp/files')
-rw-r--r-- | package/net-snmp/files/snmpd.init | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/net-snmp/files/snmpd.init b/package/net-snmp/files/snmpd.init index f7e9b917b..5cb41c13b 100644 --- a/package/net-snmp/files/snmpd.init +++ b/package/net-snmp/files/snmpd.init @@ -1,13 +1,12 @@ #!/bin/sh #PKG snmpd #INIT 60 - . /etc/rc.conf case $1 in autostop) ;; autostart) - [[ $snmpd = NO ]] && exit 0 + test x"${snmpd:-NO}" = x"NO" && exit 0 exec sh $0 start ;; start) |