From 0c06b6004f0ac13f36e724aa5f88ce123c1775ce Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 13 Apr 2005 03:37:07 +0000 Subject: cleanup (#154353, ) --- sysconfig/network-scripts/ifup-routes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.1