From: ankry Date: Thu, 3 Jul 2003 21:01:49 +0000 (+0000) Subject: - allow some actions when network is down X-Git-Tag: auto/ac/dhcp-3_0_1rc12-1~3 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=2771615b53eaf4d54ca916e13bfd9490143c3eb1;p=packages%2Fdhcp.git - allow some actions when network is down Changed files: dhcp-relay.init -> 1.15 dhcp.init -> 1.12 --- diff --git a/dhcp-relay.init b/dhcp-relay.init index 214f7ad..98a2dfb 100644 --- a/dhcp-relay.init +++ b/dhcp-relay.init @@ -15,7 +15,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 "DHCP realay" exit 1 fi diff --git a/dhcp.init b/dhcp.init index 4e1bd98..5eedcb3 100644 --- a/dhcp.init +++ b/dhcp.init @@ -15,7 +15,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 DHCPD exit 1 fi