diff options
author | Bill Nottingham <notting@redhat.com> | 2005-04-13 03:36:58 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-04-13 03:36:58 +0000 |
commit | 84ae76f3ae6a7ed1175017cea80e7f421ab91ed5 (patch) | |
tree | 1f76d648016814b99427558566ad23ef93d54524 | |
parent | b5a6060308407f74c1ec125c4beee38a096d0a44 (diff) | |
download | initscripts-84ae76f3ae6a7ed1175017cea80e7f421ab91ed5.tar initscripts-84ae76f3ae6a7ed1175017cea80e7f421ab91ed5.tar.gz initscripts-84ae76f3ae6a7ed1175017cea80e7f421ab91ed5.tar.bz2 initscripts-84ae76f3ae6a7ed1175017cea80e7f421ab91ed5.tar.xz initscripts-84ae76f3ae6a7ed1175017cea80e7f421ab91ed5.zip |
cleanup (#154353, <link@pobox.com>)
-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 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" |