diff options
author | Bill Nottingham <notting@redhat.com> | 2005-04-15 21:07:02 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-04-15 21:07:02 +0000 |
commit | 8bdbd6e5dcf5a8662f8f07bb342b0125d86a71db (patch) | |
tree | b6d09479a79b65888b0f51174a41f4d4afaa4e51 /sysconfig | |
parent | a9e093c5ff20d070b638b799f9ed7445f16db2cf (diff) | |
download | initscripts-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-x | sysconfig/network-scripts/ifup-routes | 2 |
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" |