aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-10-18 13:43:35 +0000
committerBill Nottingham <notting@redhat.com>1999-10-18 13:43:35 +0000
commitd1a662e795ead656a8eb3f9fa4b163b7771a6a5e (patch)
treeadc4708b3a07d7ba580b2f3cedbed09ce874aaa2 /rc.d/init.d/network
parent6632062a34f4ea6a35835e03283153286f571b27 (diff)
downloadinitscripts-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/init.d/network')
-rwxr-xr-xrc.d/init.d/network7
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
;;