blob: 25466b93cb18c870f7c29283ec5d2b38878198f0 (
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 \
/com/mandriva/network/status \
com.mandriva.network.status \
string:$EVENT \
string:$INTERFACE \
2>/dev/null
|