]> git.pld-linux.org Git - projects/rc-scripts.git/blame - sysconfig/network-scripts/ifup-routes
ifup-{aliases,routes,neigh} are now sourced instead of executed
[projects/rc-scripts.git] / sysconfig / network-scripts / ifup-routes
CommitLineData
12de71be 1#!/bin/sh
b0443108 2#
ec8b15cb 3# $Id$
b0443108 4#
03f9cfee 5# adds static routes which go through device $DEVICE
7742e157 6
12de71be 7if [ ! -f /etc/sysconfig/static-routes ]; then
b8c0e37b 8 return
7742e157 9fi
a9d7fb92 10
11# note the trailing white space character in the grep gets rid of aliases
eaf1d53a 12egrep "^($DEVICE|any)[[:blank:]]" /etc/sysconfig/static-routes | while read device args; do
5e6dfc29
JR
13 if (echo $args | grep -q ":") then
14 if is_no "$IPV6_NETWORKING"; then
15 continue
16 fi
17 else
18 if is_no "$IPV4_NETWORKING"; then
19 continue
20 fi
74a7f2e4 21 fi
5e6dfc29 22 /sbin/ip route add $args dev $REALDEVICE
12de71be 23done
447102a0 24
de1fc6ce 25# This must be last line !
5e6dfc29 26# vi:syntax=sh
This page took 0.131579 seconds and 4 git commands to generate.