You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
478 B
27 lines
478 B
#!/sbin/runscript
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
checkconfig() {
|
|
if [ ! -e /etc/olsrd.conf ]; then
|
|
eerror "You need a /etc/olsrd.conf file to run olsrd"
|
|
eerror "There is sample file in /usr/share/doc/olsrd-version/"
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
start() {
|
|
checkconfig || return 1
|
|
ebegin "Starting olsrd"
|
|
start-stop-daemon --start --quiet --background --exec /usr/sbin/olsrd
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping olsrd"
|
|
start-stop-daemon --stop --quiet --exec /usr/sbin/olsrd
|
|
eend $?
|
|
}
|