aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-routes
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2001-03-13 17:17:52 +0000
committerNalin Dahyabhai <nalin@redhat.com>2001-03-13 17:17:52 +0000
commit6e782ec5f090087a42eb6716bc28f8afe0a342c5 (patch)
tree5172e4284e9e115bd6b52462f844b0dfedce34ca /sysconfig/network-scripts/ifup-routes
parent385c427f063ecfdbc769936e85d966420a5182d7 (diff)
downloadinitscripts-6e782ec5f090087a42eb6716bc28f8afe0a342c5.tar
initscripts-6e782ec5f090087a42eb6716bc28f8afe0a342c5.tar.gz
initscripts-6e782ec5f090087a42eb6716bc28f8afe0a342c5.tar.bz2
initscripts-6e782ec5f090087a42eb6716bc28f8afe0a342c5.tar.xz
initscripts-6e782ec5f090087a42eb6716bc28f8afe0a342c5.zip
- fix typo in rc.sysinit
- fix ifup-routes not setting DEVICE properly
Diffstat (limited to 'sysconfig/network-scripts/ifup-routes')
-rwxr-xr-xsysconfig/network-scripts/ifup-routes2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-routes b/sysconfig/network-scripts/ifup-routes
index 61e209c9..cd57460f 100755
--- a/sysconfig/network-scripts/ifup-routes
+++ b/sysconfig/network-scripts/ifup-routes
@@ -14,6 +14,8 @@ if [ ! -f /etc/sysconfig/static-routes ]; then
exit 0
fi
+DEVICE=$1
+
#note the trailing space in the grep gets rid of aliases
grep "^$DEVICE " /etc/sysconfig/static-routes | while read device args; do
/sbin/route add -$args $device