Bug 14110

Summary: typo in /etc/rc.d/init.d/network - static-routes doesn't work
Product: [Retired] Red Hat Linux Reporter: Mads Kiilerich <mads>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-07-17 09:57:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mads Kiilerich 2000-07-17 09:57:22 UTC
/etc/sysconfig/static-routes doesn't work.

The following solves it:
--- network.org Mon Jul 17 11:51:37 2000
+++ network     Mon Jul 17 11:51:50 2000
@@ -69,7 +69,7 @@
        # Add non interface-specific static-routes.
        if [ -f /etc/sysconfig/static-routes ]; then
           grep "^any" /etc/sysconfig/static-routes | while read ignore
type dest netmask mask gw gateway; do
-             [ "${gateway}" != "${gateway##[0-9}" ] && \
+             [ "${gateway}" != "${gateway##[0-9]}" ] && \
                /sbin/route add -$type $dest $netmask $mask $gw $gateway
           done
        fi    

BTW: the format of /etc/sysconfig/static-routes is not documented anywhere
where I find it obvious... A man-page for it would be a good thing.

Regards,
Mads

Comment 1 Bill Nottingham 2000-07-18 16:18:14 UTC
Already fixed in the latest initscripts.

Comment 2 Bill Nottingham 2000-09-07 14:36:18 UTC
*** Bug 17324 has been marked as a duplicate of this bug. ***