aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-13 03:37:21 +0000
committerBill Nottingham <notting@redhat.com>2005-04-13 03:37:21 +0000
commit37173c1c6f0c898e5d9ebf5d38885d0851491b08 (patch)
tree371af0417a13f21f6191d19bb43a193f6f1be867
parentdefe19ff4f5428deafb6f0208e95ad789e3f274b (diff)
downloadinitscripts-37173c1c6f0c898e5d9ebf5d38885d0851491b08.tar
initscripts-37173c1c6f0c898e5d9ebf5d38885d0851491b08.tar.gz
initscripts-37173c1c6f0c898e5d9ebf5d38885d0851491b08.tar.bz2
initscripts-37173c1c6f0c898e5d9ebf5d38885d0851491b08.tar.xz
initscripts-37173c1c6f0c898e5d9ebf5d38885d0851491b08.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"