From 7205ca407d1101357f2878c31108c8b2786b5223 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 3 Oct 2005 21:03:48 +0000 Subject: handle no EOF in the route file (#156972) --- sysconfig/network-scripts/ifup-routes | 4 ++-- 1 file 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 -- cgit v1.2.1