summaryrefslogtreecommitdiff
path: root/net-wireless/intel-wimax-network-service/files/wimax
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/intel-wimax-network-service/files/wimax')
-rwxr-xr-xnet-wireless/intel-wimax-network-service/files/wimax21
1 files changed, 21 insertions, 0 deletions
diff --git a/net-wireless/intel-wimax-network-service/files/wimax b/net-wireless/intel-wimax-network-service/files/wimax
new file mode 100755
index 00000000..201c43a5
--- /dev/null
+++ b/net-wireless/intel-wimax-network-service/files/wimax
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+
+description="WiMAX Network Service"
+
+depend() {
+ need localmount
+ after bootmisc
+}
+
+start() {
+ ebegin "Starting WiMAX Network Service"
+ [ -e /var/run/wimaxd.pid ] && rm -f /var/run/wimaxd.pid
+ start-stop-daemon --start --quiet --pidfile /var/run/wimax.pid --exec /usr/bin/wimaxd
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping WiMAX Network Service"
+ start-stop-daemon --stop --quiet --pidfile /var/run/wimax.pid
+ eend $?
+}