blob: 864058942071d172c9f4ed320d89214442808b81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- ./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
#
|