summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/root/etc/init.d/olsrd
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-olsr/root/etc/init.d/olsrd')
-rwxr-xr-xapplications/luci-olsr/root/etc/init.d/olsrd37
1 files changed, 0 insertions, 37 deletions
diff --git a/applications/luci-olsr/root/etc/init.d/olsrd b/applications/luci-olsr/root/etc/init.d/olsrd
deleted file mode 100755
index 04c3a7578..000000000
--- a/applications/luci-olsr/root/etc/init.d/olsrd
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh /etc/rc.common
-START=50
-
-BIN=/usr/sbin/olsrd
-CONF=/var/etc/olsrd.conf
-DEFAULT=/etc/default/olsrd
-PID=/var/run/olsrd.pid
-
-start() {
- ### load defaults
- [ -f $DEFAULT ] && . $DEFAULT
-
- ### generate config
- mkdir -p ${CONF%/*}
- lua /lib/config/olsr.lua > $CONF
-
- ### check for running instance (start-stop-daemon is too stupid to do this)
- if [ -s $PID ]; then
- if kill -0 $(cat $PID) 2>&-; then
- echo "there is already a running instance ($(cat $PID))"
- exit 1
- fi
- fi
-
- ### start olsrd
- start-stop-daemon -b -m -p $PID -x $BIN -S -- -f $CONF -nofork $OPTIONS
-}
-
-stop() {
- ### stop olsrd
- start-stop-daemon -q -p $PID -a ${BIN##*/} -K
-}
-
-restart() {
- ### override generic restart because we need some time between stop and start
- stop; sleep 3; start
-}