aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-10-03 21:03:48 +0000
committerBill Nottingham <notting@redhat.com>2005-10-03 21:03:48 +0000
commit7205ca407d1101357f2878c31108c8b2786b5223 (patch)
tree6de2c54bdedec0c803fd676c06211093054c8f14
parent559c19c82a04bec88512db0f005cace098d8b1c4 (diff)
downloadinitscripts-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-xsysconfig/network-scripts/ifup-routes4
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