From d1a662e795ead656a8eb3f9fa4b163b7771a6a5e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 18 Oct 1999 13:43:35 +0000 Subject: handle weird linuxconf 'any' static routes --- rc.d/init.d/network | 7 +++++++ 1 file changed, 7 insertions(+) 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 ;; -- cgit v1.2.1