diff options
Diffstat (limited to 'sysconfig/network-scripts/ifup-routes')
-rwxr-xr-x | sysconfig/network-scripts/ifup-routes | 2 |
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 |