diff options
author | Bill Nottingham <notting@redhat.com> | 1999-10-18 13:43:35 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-10-18 13:43:35 +0000 |
commit | d1a662e795ead656a8eb3f9fa4b163b7771a6a5e (patch) | |
tree | adc4708b3a07d7ba580b2f3cedbed09ce874aaa2 /rc.d | |
parent | 6632062a34f4ea6a35835e03283153286f571b27 (diff) | |
download | initscripts-d1a662e795ead656a8eb3f9fa4b163b7771a6a5e.tar initscripts-d1a662e795ead656a8eb3f9fa4b163b7771a6a5e.tar.gz initscripts-d1a662e795ead656a8eb3f9fa4b163b7771a6a5e.tar.bz2 initscripts-d1a662e795ead656a8eb3f9fa4b163b7771a6a5e.tar.xz initscripts-d1a662e795ead656a8eb3f9fa4b163b7771a6a5e.zip |
handle weird linuxconf 'any' static routes
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/network | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 6ee87ec3..fce3d670 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -117,6 +117,13 @@ case "$1" in for i in $interfaces_boot; do action "Bringing up interface $i" ./ifup $i boot done + + # Add non interface-specific static-routes. + if [ -f /etc/sysconfig/static-routes ]; then + grep "^any" /etc/sysconfig/static-routes | while read ignore args; do + /sbin/route add -$args + done + fi touch /var/lock/subsys/network ;; |