mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-17 10:11:16 +01:00
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:
parent
c5f6d11acf
commit
5f8b002909
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user