diff options
-rwxr-xr-x | meta-networking/recipes-protocols/net-snmp/files/init | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/files/init b/meta-networking/recipes-protocols/net-snmp/files/init index 2b8fe18b34..47995466fb 100755 --- a/meta-networking/recipes-protocols/net-snmp/files/init +++ b/meta-networking/recipes-protocols/net-snmp/files/init | |||
@@ -3,9 +3,6 @@ | |||
3 | 3 | ||
4 | . /etc/init.d/functions | 4 | . /etc/init.d/functions |
5 | 5 | ||
6 | test -x /usr/sbin/snmpd || exit 0 | ||
7 | test -x /usr/sbin/snmptrapd || exit 0 | ||
8 | |||
9 | # Defaults | 6 | # Defaults |
10 | export MIBDIRS=/usr/share/snmp/mibs | 7 | export MIBDIRS=/usr/share/snmp/mibs |
11 | SNMPDRUN=yes | 8 | SNMPDRUN=yes |
@@ -18,6 +15,9 @@ SPIDFILE=/var/run/snmptrapd.pid | |||
18 | # Reads config file if exists (will override defaults above) | 15 | # Reads config file if exists (will override defaults above) |
19 | [ -r /etc/default/snmpd ] && . /etc/default/snmpd | 16 | [ -r /etc/default/snmpd ] && . /etc/default/snmpd |
20 | 17 | ||
18 | [ "$SNMPDRUN" = "yes" ] && { test -x /usr/sbin/snmpd || exit 0; } | ||
19 | [ "$TRAPDRUN" = "yes" ] && { test -x /usr/sbin/snmptrapd || exit 0; } | ||
20 | |||
21 | case "$1" in | 21 | case "$1" in |
22 | start) | 22 | start) |
23 | echo -n "Starting network management services:" | 23 | echo -n "Starting network management services:" |