mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
b4fcc5f86a
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1171 311d38ba-8fff-0310-9ca6-ca027cbcb966
29 lines
467 B
Bash
29 lines
467 B
Bash
#!/bin/sh
|
|
#
|
|
# NetworkManager startup script
|
|
|
|
. /etc/profile
|
|
|
|
case $1 in
|
|
'start')
|
|
echo -n "Starting NetworkManager daemon: NetworkManager"
|
|
/usr/sbin/NetworkManager
|
|
echo "."
|
|
;;
|
|
|
|
'stop')
|
|
echo -n "Stopping NetworkManager daemon: NetworkManager"
|
|
kill `ps |grep /usr/sbin/NetworkManager | grep -v grep | cut "-d " -f2`
|
|
echo "."
|
|
;;
|
|
|
|
'restart')
|
|
$0 stop
|
|
$0 start
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: $0 { start | stop | restart }"
|
|
;;
|
|
esac
|