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:
parent
931a5dfaff
commit
2689beb8a1
1 changed files with 8 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue