aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-15 21:07:02 +0000
committerBill Nottingham <notting@redhat.com>2005-04-15 21:07:02 +0000
commit8bdbd6e5dcf5a8662f8f07bb342b0125d86a71db (patch)
treeb6d09479a79b65888b0f51174a41f4d4afaa4e51 /sysconfig
parenta9e093c5ff20d070b638b799f9ed7445f16db2cf (diff)
downloadinitscripts-8bdbd6e5dcf5a8662f8f07bb342b0125d86a71db.tar
initscripts-8bdbd6e5dcf5a8662f8f07bb342b0125d86a71db.tar.gz
initscripts-8bdbd6e5dcf5a8662f8f07bb342b0125d86a71db.tar.bz2
initscripts-8bdbd6e5dcf5a8662f8f07bb342b0125d86a71db.tar.xz
initscripts-8bdbd6e5dcf5a8662f8f07bb342b0125d86a71db.zip
old test doesn't support =~ syntax
Diffstat (limited to 'sysconfig')
-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 95223357..f87638b7 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" =~ '^[[:space:]]*(\#.*)?$' ]]; then
+ if [ "$line" == "${line##[[:space:]]*\#}" ]; then
/sbin/ip route add $line
fi
done < "$file"