diff options
-rwxr-xr-x | sysconfig/network-scripts/ifup-routes | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-routes b/sysconfig/network-scripts/ifup-routes index bf56091d..cd5ba7fd 100755 --- a/sysconfig/network-scripts/ifup-routes +++ b/sysconfig/network-scripts/ifup-routes @@ -33,11 +33,11 @@ for file in $FILES; do handle_file $file $1 else # older format - while read line; do + { cat "$file" ; echo ; } | while read line; do if [[ ! "$line" =~ '^[[:space:]]*(\#.*)?$' ]]; then /sbin/ip route add $line fi - done < "$file" + done fi fi done |