networkmanager: Move from meta-extras to meta

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3709 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2008-02-07 20:00:09 +00:00
parent fc20c6cbee
commit e600587fdc
7 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
#!/bin/sh
#
# NetworkManager startup script
. /etc/profile
case $1 in
'start')
echo -n "Starting NetworkManager daemon: NetworkManager"
/usr/sbin/NetworkManager
/usr/sbin/NetworkManagerDispatcher
/usr/sbin/wpa_supplicant -u &
echo "."
;;
'stop')
echo -n "Stopping NetworkManager daemon: NetworkManager"
kill `ps |grep /usr/sbin/NetworkManagerDispatcher | grep -v grep | cut "-d " -f2`
kill `ps |grep /usr/sbin/NetworkManager | grep -v grep | cut "-d " -f2`
kill `ps |grep /usr/sbin/wpa_supplicant | grep -v grep | cut "-d " -f2`
echo "."
;;
'restart')
$0 stop
$0 start
;;
*)
echo "Usage: $0 { start | stop | restart }"
;;
esac