aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysconfig/network-scripts/ifdhcpc-done2
-rwxr-xr-xsysconfig/network-scripts/ifup3
2 files changed, 3 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdhcpc-done b/sysconfig/network-scripts/ifdhcpc-done
index 8abc5cb1..5444f105 100644
--- a/sysconfig/network-scripts/ifdhcpc-done
+++ b/sysconfig/network-scripts/ifdhcpc-done
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/bin/sh
SLEEPPIDFILE=/var/run/dhcp-wait-${IFNAME}.pid
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index f59b99e5..11635eee 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -135,7 +135,8 @@ if [ "$IPSETUP" != yes ]; then
ifconfig ${DEVICE} ${MACADDR:+hw ether $MACADDR} ${IPADDR} \
netmask ${NETMASK} broadcast ${BROADCAST}
- if [ "$ISALIAS" = no ] ; then
+ # stupid hack, but it should work
+ if [ "$ISALIAS" = no ] && [ ! -f "/proc/sys/kernel/modprobe" ] ; then
route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}
else
route add -host ${IPADDR} ${DEVICE}