mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 08:12:06 +01:00
When starting, shorewall will save all default routes. When stop, it will try to restore it. But does it badly. On multiisp setups with pingu it will break things. We (ab)use the RESTORE_DEFAULT_ROUTE to make it possible to avoid restoring the default route.
14 lines
476 B
Diff
14 lines
476 B
Diff
--- ./lib.providers.orig
|
|
+++ ./lib.providers
|
|
@@ -378,7 +378,9 @@
|
|
#
|
|
# Capture the default route(s) if we don't have it (them) already.
|
|
#
|
|
-[ -f \${VARDIR}/default_route ] || ip route list | grep -E '^\s*(default |nexthop )' > \${VARDIR}/default_route
|
|
+if [ "\$RESTORE_DEFAULT_ROUTE" != "No" ] && ! [ -f \${VARDIR}/default_route ]; then
|
|
+ ip route list | grep -E '^\s*(default |nexthop )' > \${VARDIR}/default_route
|
|
+fi
|
|
#
|
|
# Initialize the file that holds 'undo' commands
|
|
#
|