From 590ecc69477d6666813e02ca2fb54b8874110b56 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 13 Apr 2005 03:36:48 +0000 Subject: cleanup (#154353, ) --- sysconfig/network-scripts/ifup-routes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig/network-scripts') 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