]> git.pld-linux.org Git - packages/net-snmp.git/commitdiff
- allow some actions when network is down
authorankry <ankry@pld-linux.org>
Thu, 3 Jul 2003 21:01:50 +0000 (21:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    net-snmpd.init -> 1.4
    net-snmptrapd.init -> 1.5

net-snmpd.init
net-snmptrapd.init

index 98a524f59173d12418ed44018f36fd00bdc98ad6..f6fdc655cf3c8d450746c371cf9c21c14a9668aa 100644 (file)
@@ -29,7 +29,7 @@ LOG_WARNINGS_MESSAGES_TO_SYSLOG=yes
 
 # Check that networking is up.
 if is_yes "${NETWORKING}"; then
-       if [ ! -f /var/lock/subsys/network ]; then
+       if [ ! -f /var/lock/subsys/network -a != stop -a != status ]; then
                msg_network_down "snmpd"
                exit 1
        fi
index 944f7f3408b8315c8d561cc529921ae6582bd4c7..251e0d220c57abfecbf7d5364033185ad05bb3a4 100644 (file)
@@ -22,7 +22,7 @@
 
 # Check that networking is up.
 if is_yes "${NETWORKING}"; then
-       if [ ! -f /var/lock/subsys/network ]; then
+       if [ ! -f /var/lock/subsys/network -a != stop -a != status ]; then
                msg_network_down "snmptrapd"
                exit 1
        fi
This page took 0.126946 seconds and 4 git commands to generate.