mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-23 19:21:21 +02: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() {
|
undo_routing() {
|
||||||
|
|
||||||
|
if [ -z "$NOROUTES" ]; then
|
||||||
#
|
#
|
||||||
# Restore rt_tables database
|
# Restore rt_tables database
|
||||||
#
|
#
|
||||||
@ -1302,12 +1303,13 @@ undo_routing() {
|
|||||||
progress_message "Shorewall-generated routing tables and routing rules removed"
|
progress_message "Shorewall-generated routing tables and routing rules removed"
|
||||||
rm -f ${VARDIR}/undo_routing
|
rm -f ${VARDIR}/undo_routing
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
restore_default_route() {
|
restore_default_route() {
|
||||||
|
|
||||||
if [ -f ${VARDIR}/default_route ]; then
|
if [ -z "$NOROUTES" -a -f ${VARDIR}/default_route ]; then
|
||||||
local default_route= route
|
local default_route= route
|
||||||
|
|
||||||
while read route ; do
|
while read route ; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user