diff options
author | Bill Nottingham <notting@redhat.com> | 2002-01-25 04:31:48 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-01-25 04:31:48 +0000 |
commit | 44c9c3fff80a1d51d0317675129aee9aae4a008e (patch) | |
tree | 545549851da04f844cb306582e85cd835afc7947 /sysconfig/network-scripts | |
parent | 2db1f5d2b8813693629672c219c45891d3c9a328 (diff) | |
download | initscripts-44c9c3fff80a1d51d0317675129aee9aae4a008e.tar initscripts-44c9c3fff80a1d51d0317675129aee9aae4a008e.tar.gz initscripts-44c9c3fff80a1d51d0317675129aee9aae4a008e.tar.bz2 initscripts-44c9c3fff80a1d51d0317675129aee9aae4a008e.tar.xz initscripts-44c9c3fff80a1d51d0317675129aee9aae4a008e.zip |
allow tabs as delimiters, as well (#53964)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup-routes | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-routes b/sysconfig/network-scripts/ifup-routes index bd863cc3..f66a78c0 100755 --- a/sysconfig/network-scripts/ifup-routes +++ b/sysconfig/network-scripts/ifup-routes @@ -18,9 +18,9 @@ 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 +grep "^$DEVICE[[:space:]]" /etc/sysconfig/static-routes | while read device args; do /sbin/route add -$args $device done -grep "^any " /etc/sysconfig/static-routes | while read ignore args ; do +grep "^any[[:space:]]" /etc/sysconfig/static-routes | while read ignore args ; do /sbin/route add -$args done |