Honor -n option when restoring routing

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4766 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-10-30 19:17:20 +00:00
parent c5f6d11acf
commit 5f8b002909

View File

@ -1287,6 +1287,7 @@ get_device_mtu() # $1 = device
#
undo_routing() {
if [ -z "$NOROUTES" ]; then
#
# Restore rt_tables database
#
@ -1302,12 +1303,13 @@ undo_routing() {
progress_message "Shorewall-generated routing tables and routing rules removed"
rm -f ${VARDIR}/undo_routing
fi
fi
}
restore_default_route() {
if [ -f ${VARDIR}/default_route ]; then
if [ -z "$NOROUTES" -a -f ${VARDIR}/default_route ]; then
local default_route= route
while read route ; do