Package: ifplugd
Version: 0.28-7
Severity: wishlist
Tags: patch

Hi,

I'd like to propose a slight addition to ifplugd.action script; run-parts could
exit if it encountered a failing case while executing scripts in
/etc/ifplugd/action.d/.

This could allow more fine grained policies to the admin, for one example, a
script could be installed to purposely inhibit the ifupdown action under
certain conditions.

Thanks, Kel.
---
diff -Nrup ifplugd-0.28.orig/debian/ifplugd.action 
ifplugd-0.28/debian/ifplugd.action
--- ifplugd-0.28.orig/debian/ifplugd.action     2008-04-08 00:43:59.000000000 
+1000
+++ ifplugd-0.28/debian/ifplugd.action  2008-04-08 00:44:48.000000000 +1000
@@ -21,7 +21,7 @@ set -e
 
 case "$2" in
 up|down)
-       run-parts --arg="$1" --arg="$2" /etc/ifplugd/action.d/
+       run-parts --exit-on-error --arg="$1" --arg="$2" /etc/ifplugd/action.d/
        ;;
 *)
        echo "ifplugd.action: Incorrect action argument" >&2



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to