aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-routes4
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