aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d')
-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
;;