diff options
Diffstat (limited to 'mandriva/mdv-network-event')
-rwxr-xr-x | mandriva/mdv-network-event | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mandriva/mdv-network-event b/mandriva/mdv-network-event new file mode 100755 index 00000000..705361b7 --- /dev/null +++ b/mandriva/mdv-network-event @@ -0,0 +1,15 @@ +#!/bin/sh +# usage "mdv-network-event <event> <interface> + +EVENT=$1 +INTERFACE=$2 +if [ -z "$EVENT" ] || [ -z "$INTERFACE" ] || [ ! -x /usr/bin/dbus-send ]; then + exit +fi + +/usr/bin/dbus-send --system --type=signal \ + /org/mageia/network/status \ + org.mageia.network.status \ + "string:$EVENT" \ + "string:$INTERFACE" \ + 2>/dev/null |