Bug 10472 - /etc/rc.d/init.d/network probe always returns "reload"
/etc/rc.d/init.d/network probe always returns "reload"
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
6.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-03-31 03:40 EST by jonathan
Modified: 2014-03-16 22:13 EDT (History)
2 users (show)

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


Attachments (Terms of Use)

  None (edit)
Description jonathan 2000-03-31 03:40:46 EST
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 10:46:59 EST
Ugh. Fixed in 5.05-1.

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