Changed files:
dhcp.init -> 1.27
dhcp6.init -> 1.11
# Get network config
. /etc/sysconfig/network
+# Check that networking is up.
+if ! is_yes "${IPV4_NETWORKING}"; then
+ exit 0
+fi
+
# Get service config
[ -f /etc/sysconfig/dhcpd ] && . /etc/sysconfig/dhcpd
-# Check that networking is up.
-if is_yes "${IPV4_NETWORKING}"; then
- if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
- msg_network_down "DHCP Server"
- exit 1
- fi
-else
- exit 0
+if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
+ msg_network_down "DHCP Server"
+ exit 1
fi
check_device_up()
# Get network config
. /etc/sysconfig/network
+# Check that networking is up.
+if ! is_yes "${IPV6_NETWORKING}"; then
+ exit 0
+fi
+
# Get service config
[ -f /etc/sysconfig/dhcpd ] && . /etc/sysconfig/dhcpd
-# Check that networking is up.
-if is_yes "${IPV6_NETWORKING}"; then
- if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
- msg_network_down "DHCP IPv6 Server"
- exit 1
- fi
-else
- exit 0
+if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
+ msg_network_down "DHCP IPv6 Server"
+ exit 1
fi
check_device_up()