summaryrefslogtreecommitdiffstats
path: root/testing/networkmanager/networkmanager.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/networkmanager/networkmanager.initd')
-rw-r--r--testing/networkmanager/networkmanager.initd23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/networkmanager/networkmanager.initd b/testing/networkmanager/networkmanager.initd
new file mode 100644
index 000000000..a6bce80b5
--- /dev/null
+++ b/testing/networkmanager/networkmanager.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright (c) 2008 Saleem Abdulrasool <compnerd@compnerd.org>
+# Distributed under the terms of the GNU General Purpose License v2
+# $Header: $
+
+depend() {
+ need dbus dhcpcd
+}
+
+start() {
+ ebegin "Starting NetworkManager"
+ start-stop-daemon --start --quiet --pidfile /var/run/NetworkManager.pid \
+ --exec /usr/sbin/NetworkManager -- --pid-file /var/run/NetworkManager.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping NetworkManager"
+ start-stop-daemon --stop --quiet --pidfile /var/run/NetworkManager.pid
+ eend $?
+}
+
+# vim: set ft=gentoo-init-d ts=3 sw=3 et: