aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-13 03:37:07 +0000
committerBill Nottingham <notting@redhat.com>2005-04-13 03:37:07 +0000
commit0c06b6004f0ac13f36e724aa5f88ce123c1775ce (patch)
treea036b7c0aea8d030d41c7d01f56c745dcc58842c
parentb469474fe287d3e2ebfb87e2613e46970f647f37 (diff)
downloadinitscripts-0c06b6004f0ac13f36e724aa5f88ce123c1775ce.tar
initscripts-0c06b6004f0ac13f36e724aa5f88ce123c1775ce.tar.gz
initscripts-0c06b6004f0ac13f36e724aa5f88ce123c1775ce.tar.bz2
initscripts-0c06b6004f0ac13f36e724aa5f88ce123c1775ce.tar.xz
initscripts-0c06b6004f0ac13f36e724aa5f88ce123c1775ce.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"