Bug 31788 - error in ifup
Summary: error in ifup
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: initscripts
Version: 1.0
Hardware: i386
OS: Linux
high
high
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-03-14 17:51 UTC by Gerald Teschl
Modified: 2014-03-17 02:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-03-14 17:54:23 UTC
Embargoed:


Attachments (Terms of Use)

Description Gerald Teschl 2001-03-14 17:51:27 UTC
The latest ifup doesn't set the default route correctly. Below is a fix

--- ifup.orig   Tue Mar 13 23:19:06 2001
+++ ifup        Tue Mar 13 23:17:49 2001
@@ -166,7 +166,7 @@
 
     if [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then
        # set up default gateway
-       if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK}`
2>/dev/null" = "NETWORK=${NETWORK}" ]; then
+       if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK}
2>/dev/null`" = "NETWORK=${NETWORK}" ]; then
            route add default gw ${GATEWAY} ${DEVICE}
            DEFGW=${GATEWAY}
        elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then

Comment 1 Bill Nottingham 2001-03-14 17:54:19 UTC
Also fixed in 5.77-1.


Note You need to log in before you can comment on or make changes to this bug.