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
This commit is contained in:
Felix Fietkau 2006-10-04 20:57:49 +00:00
parent 931a5dfaff
commit 2689beb8a1
1 changed files with 8 additions and 10 deletions

View File

@ -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
}