]> git.pld-linux.org Git - projects/rc-scripts.git/blob - sysconfig/network-scripts/ifup-routes
massive :$
[projects/rc-scripts.git] / sysconfig / network-scripts / ifup-routes
1 #!/bin/sh
2 #
3 #       $Id: ifup-routes,v 1.4 1999/07/13 12:49:37 misiek Exp $
4 #
5 # adds static routes which go through device $1
6
7 if [ "$1" = "" ]; then
8         echo "usage: $0 <net-device>"
9         exit 1
10 fi
11
12 if [ ! -f /etc/sysconfig/static-routes ]; then
13     exit 0
14 fi
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
18 done
This page took 0.023761 seconds and 3 git commands to generate.