SOURCE_HASH=sha512:ec18b9cc36914b27ee9cfd1d30dc6fbf356f9ca5a0e7af1eafe6318c22ab59f6e214869e47c61ca00389061a58fa46e4bf113423156b8b5ebf75308a3ad23153
diff --git a/net/ifupdown/HISTORY b/net/ifupdown/HISTORY
index 0554776..7346d25 100644
--- a/net/ifupdown/HISTORY
+++ b/net/ifupdown/HISTORY
@@ -1,3 +1,7 @@
+2021-08-01 Florian Franzmann <bwlf AT bandrate.org>
+ * PROVIDES: provide IFUPDOWN
+ * DETAILS: PATCHLEVEL++
+
2021-05-27 Ismael Luceno <ismael AT sourcemage.org>
* CONFLICTS: conflict with ifupdown-ng
diff --git a/net/ifupdown/PROVIDES b/net/ifupdown/PROVIDES
new file mode 100755
index 0000000..a5fa74b
--- /dev/null
+++ b/net/ifupdown/PROVIDES
@@ -0,0 +1 @@
+IFUPDOWN
diff --git a/net/net-tools/HISTORY b/net/net-tools/HISTORY
index 5ddb397..8eb03b0 100644
--- a/net/net-tools/HISTORY
+++ b/net/net-tools/HISTORY
@@ -1,3 +1,6 @@
+2021-08-01 Florian Franzmann <bwlf AT bandrate.org>
+ * PREPARE, UP_TRIGGERS: use IFUPDOWN provider
+
2021-03-13 Florian Franzmann <bwlf AT bandrate.org>
* DETAILS: version 2.10
diff --git a/net/net-tools/PREPARE b/net/net-tools/PREPARE
index a170d4a..f0efff2 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 27c59e7..5f5b4f7 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
diff --git a/net/network-manager/DEPENDS b/net/network-manager/DEPENDS
index 3d42e66..ed1ae72 100755
--- a/net/network-manager/DEPENDS
+++ b/net/network-manager/DEPENDS
@@ -65,7 +65,7 @@ optional_depends upower \
"" \
"Suspend/Resume support" &&