aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-routes
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-13 03:36:48 +0000
committerBill Nottingham <notting@redhat.com>2005-04-13 03:36:48 +0000
commit590ecc69477d6666813e02ca2fb54b8874110b56 (patch)
tree15b52e744d0c2de16c9659cf8cacb3cec77b5e81 /sysconfig/network-scripts/ifup-routes
parent124f18fb16481908cedbafe4ff2407ce4d0a4e4e (diff)
downloadinitscripts-590ecc69477d6666813e02ca2fb54b8874110b56.tar
initscripts-590ecc69477d6666813e02ca2fb54b8874110b56.tar.gz
initscripts-590ecc69477d6666813e02ca2fb54b8874110b56.tar.bz2
initscripts-590ecc69477d6666813e02ca2fb54b8874110b56.tar.xz
initscripts-590ecc69477d6666813e02ca2fb54b8874110b56.zip
cleanup (#154353, <link@pobox.com>)
Diffstat (limited to 'sysconfig/network-scripts/ifup-routes')
-rwxr-xr-xsysconfig/network-scripts/ifup-routes2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-routes b/sysconfig/network-scripts/ifup-routes
index 37b6888e..6d72e078 100755
--- a/sysconfig/network-scripts/ifup-routes
+++ b/sysconfig/network-scripts/ifup-routes
@@ -34,7 +34,7 @@ for file in $FILES; do
else
# older format
while read line; do
- if [ "$line" == "${line##\#}" ]; then
+ if [[ ! "$line" =~ '^[[:space:]]*(\#.*)?$' ]; then
/sbin/ip route add $line
fi
done < "$file"