diff options
author | Bill Nottingham <notting@redhat.com> | 2002-11-12 06:46:00 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-11-12 06:46:00 +0000 |
commit | 0842c7603b9eea5849048655be3aaba6b0dcb41e (patch) | |
tree | 6574a666751d23b79b50202147656d27f23a901a /sysconfig/network-scripts/ifup-aliases | |
parent | 8db687d270a970287933e4abcfbb85b80ad37c8f (diff) | |
download | initscripts-0842c7603b9eea5849048655be3aaba6b0dcb41e.tar initscripts-0842c7603b9eea5849048655be3aaba6b0dcb41e.tar.gz initscripts-0842c7603b9eea5849048655be3aaba6b0dcb41e.tar.bz2 initscripts-0842c7603b9eea5849048655be3aaba6b0dcb41e.tar.xz initscripts-0842c7603b9eea5849048655be3aaba6b0dcb41e.zip |
just use ifup-routes for aliases
Diffstat (limited to 'sysconfig/network-scripts/ifup-aliases')
-rwxr-xr-x | sysconfig/network-scripts/ifup-aliases | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases index 4671692a..0c695529 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -275,13 +275,8 @@ function new_interface () fi fi fi - - if [ -f /etc/sysconfig/static-routes ]; then - #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 - done - fi + + /etc/sysconfig/network-scripts/ifup-routes ${DEVICE} do_netreport=yes ifuplocal_queue="$ifuplocal_queue $DEVICE" |