summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/net-tools/HISTORY3
-rwxr-xr-xnet/net-tools/PREPARE4
-rwxr-xr-xnet/net-tools/UP_TRIGGERS5
3 files changed, 9 insertions, 3 deletions
diff --git a/net/net-tools/HISTORY b/net/net-tools/HISTORY
index 5ddb397f3e..8eb03b0dfa 100644
--- a/net/net-tools/HISTORY
+++ b/net/net-tools/HISTORY
@@ -1,3 +1,6 @@
+2021-08-01 Florian Franzmann <bwlf@bandrate.org>
+ * PREPARE, UP_TRIGGERS: use IFUPDOWN provider
+
2021-03-13 Florian Franzmann <bwlf@bandrate.org>
* DETAILS: version 2.10
diff --git a/net/net-tools/PREPARE b/net/net-tools/PREPARE
index a170d4abdc..f0efff2c68 100755
--- a/net/net-tools/PREPARE
+++ b/net/net-tools/PREPARE
@@ -1,6 +1,6 @@
persistent_add NETTOOLSHASTIME &&
persistent_add NETTOOLSNEW &&
-if ! spell_ok ifupdown ; then
+if ! provider_ok IFUPDOWN ; then
NETTOOLSNEW="y" &&
# Have to cheat to get a config option over into ifupdown
touch ${INSTALL_ROOT}/tmp/net-toolsNewInstall &&
@@ -13,7 +13,7 @@ if ! spell_ok ifupdown ; then
message "But if you reboot, no network connections will come up." &&
message "Because of this, you must say y to the following question, or this" &&
message "spell will not install." &&
- message "Right after casting this spell, you need to cast ifupdown.${DEFAULT_COLOR}" &&
+ message "Right after casting this spell, you need to cast the provider of IFUPDOWN.${DEFAULT_COLOR}" &&
config_query NETTOOLSHASTIME "Do you have time to configure your nifty new networking?" n &&
if [[ "$NETTOOLSHASTIME" != "y" ]]; then
diff --git a/net/net-tools/UP_TRIGGERS b/net/net-tools/UP_TRIGGERS
index 27c59e7e73..5f5b4f7074 100755
--- a/net/net-tools/UP_TRIGGERS
+++ b/net/net-tools/UP_TRIGGERS
@@ -1,3 +1,6 @@
if [[ "$NETTOOLSNEW" == "y" ]]; then
- up_trigger ifupdown cast_self
+ local IFUPDOWN="$(get_spell_provider IFUPDOWN)"
+ if [[ ! -z "$IFUPDOWN" ]] && spell_installed "$IFUPDOWN"; then
+ up_trigger "$IFUPDOWN" cast_self
+ fi
fi