summaryrefslogtreecommitdiff
path: root/packages/networkmanager/files/25NetworkManager
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-09-29 07:45:49 +0000
committerKoen Kooi <koen@openembedded.org>2007-09-29 07:45:49 +0000
commit8cd45ca0a06cdccf07efae39e03656a68512637d (patch)
tree8e065e3a302127949e3867a1ae527a345ad644fe /packages/networkmanager/files/25NetworkManager
parent3b4ef5e53b95cf3e715188f05e54143aad4abf54 (diff)
network-manager svn: sync with poky
Diffstat (limited to 'packages/networkmanager/files/25NetworkManager')
-rw-r--r--packages/networkmanager/files/25NetworkManager30
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/networkmanager/files/25NetworkManager b/packages/networkmanager/files/25NetworkManager
new file mode 100644
index 0000000000..8e4dec167f
--- /dev/null
+++ b/packages/networkmanager/files/25NetworkManager
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# NetworkManager startup script
+
+. /etc/profile
+
+case $1 in
+ 'start')
+ echo -n "Starting NetworkManager daemon: NetworkManager"
+ /usr/sbin/NetworkManager
+ /usr/sbin/NetworkManagerDispatcher
+ 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`
+ echo "."
+ ;;
+
+ 'restart')
+ $0 stop
+ $0 start
+ ;;
+
+ *)
+ echo "Usage: $0 { start | stop | restart }"
+ ;;
+esac