summaryrefslogtreecommitdiff
path: root/packages/networkmanager/files/NetworkManager
diff options
context:
space:
mode:
Diffstat (limited to 'packages/networkmanager/files/NetworkManager')
-rwxr-xr-xpackages/networkmanager/files/NetworkManager28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/networkmanager/files/NetworkManager b/packages/networkmanager/files/NetworkManager
new file mode 100755
index 0000000000..0beff63081
--- /dev/null
+++ b/packages/networkmanager/files/NetworkManager
@@ -0,0 +1,28 @@
+#!/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