summaryrefslogtreecommitdiffstats
path: root/package/olsr/S50olsr
diff options
context:
space:
mode:
Diffstat (limited to 'package/olsr/S50olsr')
-rwxr-xr-xpackage/olsr/S50olsr21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/olsr/S50olsr b/package/olsr/S50olsr
new file mode 100755
index 000000000..96b851b56
--- /dev/null
+++ b/package/olsr/S50olsr
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# Starts OLSRD daemon
+#
+
+case "$1" in
+ start)
+ echo "Starting OLSRd daemon: "
+ /usr/sbin/olsrd -d 0 -nofork &
+ ;;
+ stop)
+ echo "Stopping OLSRd daemon: "
+ killall olsrd
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop}"
+ exit 1
+esac
+
+exit $?
+