Bug 10472 - /etc/rc.d/init.d/network probe always returns "reload"
Summary: /etc/rc.d/init.d/network probe always returns "reload"
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts   
(Show other bugs)
Version: 6.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-03-31 08:40 UTC by jonathan
Modified: 2014-03-17 02:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-03-31 15:46:51 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description jonathan 2000-03-31 08:40:46 UTC
The /etc/rc.d/init.d/network script was mis-edited and so now (initscripts
5.00-1) always returns the string "reload".

The fix is to restore the && \ test and continuation at the end of a single
line of the script.  The patch is enclosed below.

As a result, Linuxconf always thinks it needs to restart networking.

How this got through RedHat's QA process I do not understand -- it looks
like code was edited but never tested!

Jonathan Marsden <jonathan@xc.org>

--- network.orig        Tue Mar  7 16:30:13 2000
+++ network     Fri Mar 31 09:33:37 2000
@@ -168,7 +168,7 @@
        if [ -x /bin/linuxconf ] ; then
                eval `/bin/linuxconf --hint netdev`
                [ -n "$DEV_UP$DEV_DOWN$DEV_RECONF$DEV_RECONF_ALIASES" -o \
-                 -n "$DEV_RECONF_ROUTES$IPXINTERNALNET" ]
+                 -n "$DEV_RECONF_ROUTES$IPXINTERNALNET" ] && \
                        echo reload
                exit 0
        else

Comment 1 Bill Nottingham 2000-03-31 15:46:59 UTC
Ugh. Fixed in 5.05-1.


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