summaryrefslogtreecommitdiffstats
path: root/net/net-tools/UP_TRIGGERS
diff options
context:
space:
mode:
Diffstat (limited to 'net/net-tools/UP_TRIGGERS')
-rwxr-xr-xnet/net-tools/UP_TRIGGERS5
1 files changed, 4 insertions, 1 deletions
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