summaryrefslogtreecommitdiff
path: root/packages/networkmanager/files/mamona/25NetworkManager
diff options
context:
space:
mode:
Diffstat (limited to 'packages/networkmanager/files/mamona/25NetworkManager')
-rw-r--r--packages/networkmanager/files/mamona/25NetworkManager30
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/networkmanager/files/mamona/25NetworkManager b/packages/networkmanager/files/mamona/25NetworkManager
new file mode 100644
index 0000000000..606d2bc33d
--- /dev/null
+++ b/packages/networkmanager/files/mamona/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 --no-scan
+ /usr/sbin/NetworkManagerDispatcher
+ echo "."
+ ;;
+
+ 'stop')
+ echo -n "Stopping NetworkManager daemon: NetworkManager"
+ kill `pidof NetworkManagerDispatcher`
+ kill `pidof NetworkManager`
+ echo "."
+ ;;
+
+ 'restart')
+ $0 stop
+ $0 start
+ ;;
+
+ *)
+ echo "Usage: $0 { start | stop | restart }"
+ ;;
+esac