summaryrefslogtreecommitdiff
path: root/package/olsrd/files/olsrd.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/olsrd/files/olsrd.init')
-rw-r--r--package/olsrd/files/olsrd.init15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/olsrd/files/olsrd.init b/package/olsrd/files/olsrd.init
new file mode 100644
index 0000000000..1f1fdb9519
--- /dev/null
+++ b/package/olsrd/files/olsrd.init
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+DEFAULT=/etc/default/olsrd
+[ -f $DEFAULT ] && . $DEFAULT
+
+case $1 in
+ start)
+ olsrd $OPTIONS
+ ;;
+ *)
+ echo "usage: $0 (start)"
+ exit 1
+esac
+
+exit $?