From fa2911a4dc5cc793f495b39d9c71bbcc29ff011b Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 20 Apr 2012 14:33:30 -0400 Subject: Drop net-tools requirement; check for /sbin/route before calling legacy static-route support. (#682308) --- rc.d/init.d/network | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'rc.d') diff --git a/rc.d/init.d/network b/rc.d/init.d/network index fe9476d7..c38381a3 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -154,9 +154,13 @@ case "$1" in # 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 + if [ -x /sbin/route ]; then + grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do + /sbin/route add -$args + done + else + net_log $"Legacy static-route support not available: route not found" + fi fi # IPv6 hook (post IPv4 start) -- cgit v1.2.1