aboutsummaryrefslogtreecommitdiffstats
path: root/mandriva/mdv-network-event
blob: 705361b76c62aa2f1d5745342093f8004c6735bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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