diff options
author | Bill Nottingham <notting@redhat.com> | 2005-10-03 21:03:48 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-10-03 21:03:48 +0000 |
commit | 7205ca407d1101357f2878c31108c8b2786b5223 (patch) | |
tree | 6de2c54bdedec0c803fd676c06211093054c8f14 | |
parent | 559c19c82a04bec88512db0f005cace098d8b1c4 (diff) | |
download | initscripts-7205ca407d1101357f2878c31108c8b2786b5223.tar initscripts-7205ca407d1101357f2878c31108c8b2786b5223.tar.gz initscripts-7205ca407d1101357f2878c31108c8b2786b5223.tar.bz2 initscripts-7205ca407d1101357f2878c31108c8b2786b5223.tar.xz initscripts-7205ca407d1101357f2878c31108c8b2786b5223.zip |
handle no EOF in the route file (#156972)
-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 |