blob: 34e54d32607c44e4e8764da05d7066ddde8c0794 (
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
|