5 sbindir
=${exec_prefix}/sbin
7 NETWORKMANAGER_BIN
=${sbindir}/NetworkManager
9 [ -x $NETWORKMANAGER_BIN ] ||
exit 0
11 PID
=`pidof NetworkManager`
14 printf "Starting NetworkManager ... "
15 [ ! -d /var
/run
/NetworkManager
] && install -d /var
/run
/NetworkManager
16 if [ -z "$PID" ]; then
19 if [ ! -z "$PID" -o $?
-gt 0 ]; then
26 printf "Stopping NetworkManager ... "
27 [ ! -z "$PID" ] && kill $PID > /dev
/null
2>&1
40 echo "usage: $0 {start|stop|restart|sleep|wake}"