summaryrefslogtreecommitdiff
path: root/openwrt/package/olsrd/files/olsrd.init
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-18 14:53:00 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-18 14:53:00 +0000
commitda6454c5891d772f7bcc9b2552ff088a40451eb0 (patch)
treea3c7927db214bac0beb7b14a66d9999ab95d6e73 /openwrt/package/olsrd/files/olsrd.init
parent9c2e7c1496a48de52073279f0cf9d81d962d722b (diff)
Convert olsrd to new packaging style, put plugins into sub-packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@936 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/olsrd/files/olsrd.init')
-rw-r--r--openwrt/package/olsrd/files/olsrd.init15
1 files changed, 15 insertions, 0 deletions
diff --git a/openwrt/package/olsrd/files/olsrd.init b/openwrt/package/olsrd/files/olsrd.init
new file mode 100644
index 0000000000..1f1fdb9519
--- /dev/null
+++ b/openwrt/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 $?