3 # $Id: ifup-routes,v 1.4 1999/07/13 12:49:37 misiek Exp $
5 # adds static routes which go through device $1
8 echo "usage: $0 <net-device>"
12 if [ ! -f /etc/sysconfig/static-routes ]; then
15 #note the trailing space in the grep gets rid of aliases
16 grep "^$1 " /etc/sysconfig/static-routes | while read device args; do
17 /sbin/ip route add $args dev $device