diff options
author | Bill Nottingham <notting@redhat.com> | 2005-04-13 03:37:21 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-04-13 03:37:21 +0000 |
commit | 37173c1c6f0c898e5d9ebf5d38885d0851491b08 (patch) | |
tree | 371af0417a13f21f6191d19bb43a193f6f1be867 | |
parent | defe19ff4f5428deafb6f0208e95ad789e3f274b (diff) | |
download | initscripts-37173c1c6f0c898e5d9ebf5d38885d0851491b08.tar initscripts-37173c1c6f0c898e5d9ebf5d38885d0851491b08.tar.gz initscripts-37173c1c6f0c898e5d9ebf5d38885d0851491b08.tar.bz2 initscripts-37173c1c6f0c898e5d9ebf5d38885d0851491b08.tar.xz initscripts-37173c1c6f0c898e5d9ebf5d38885d0851491b08.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" |