From 2689beb8a1ee828df410c6c94d0616fb47cfc71c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 4 Oct 2006 20:57:49 +0000 Subject: [PATCH] port lots of init scripts over to rc.common (more to come) git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@4917 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- files/olsrd.init | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/files/olsrd.init b/files/olsrd.init index 1f1fdb9..f59ff7e 100644 --- a/files/olsrd.init +++ b/files/olsrd.init @@ -1,15 +1,13 @@ -#!/bin/sh +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org DEFAULT=/etc/default/olsrd [ -f $DEFAULT ] && . $DEFAULT -case $1 in - start) - olsrd $OPTIONS - ;; - *) - echo "usage: $0 (start)" - exit 1 -esac +start() { + olsrd $OPTIONS +} -exit $? +stop() { + killall olsrd +}