From 8bdbd6e5dcf5a8662f8f07bb342b0125d86a71db Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 15 Apr 2005 21:07:02 +0000 Subject: old test doesn't support =~ syntax --- sysconfig/network-scripts/ifup-routes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup-routes') 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" -- cgit v1.2.1