diff options
author | Richard Purdie <richard@openedhand.com> | 2008-02-07 20:00:09 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-02-07 20:00:09 +0000 |
commit | e600587fdc3f3e55de886c6f883f55777df7dfcf (patch) | |
tree | 890aa44e885a8d99897850d1312b94bb91d897c8 /meta/packages/networkmanager/files/25NetworkManager | |
parent | fc20c6cbee24e0382d2cd486ddd693202a2e2541 (diff) | |
download | openembedded-core-e600587fdc3f3e55de886c6f883f55777df7dfcf.tar.gz openembedded-core-e600587fdc3f3e55de886c6f883f55777df7dfcf.tar.bz2 openembedded-core-e600587fdc3f3e55de886c6f883f55777df7dfcf.tar.xz openembedded-core-e600587fdc3f3e55de886c6f883f55777df7dfcf.zip |
networkmanager: Move from meta-extras to meta
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3709 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/networkmanager/files/25NetworkManager')
-rw-r--r-- | meta/packages/networkmanager/files/25NetworkManager | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/packages/networkmanager/files/25NetworkManager b/meta/packages/networkmanager/files/25NetworkManager new file mode 100644 index 000000000..676fde35c --- /dev/null +++ b/meta/packages/networkmanager/files/25NetworkManager @@ -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 |