summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-13 03:36:58 +0000
committerBill Nottingham <notting@redhat.com>2005-04-13 03:36:58 +0000
commit84ae76f3ae6a7ed1175017cea80e7f421ab91ed5 (patch)
tree1f76d648016814b99427558566ad23ef93d54524
parentb5a6060308407f74c1ec125c4beee38a096d0a44 (diff)
downloadinitscripts-84ae76f3ae6a7ed1175017cea80e7f421ab91ed5.tar.gz
initscripts-84ae76f3ae6a7ed1175017cea80e7f421ab91ed5.tar.xz
initscripts-84ae76f3ae6a7ed1175017cea80e7f421ab91ed5.zip
cleanup (#154353, <link@pobox.com>)
-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"