2006-10-04 20:57:49 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2007-05-10 10:38:53 +00:00
|
|
|
START=50
|
2006-07-23 17:11:35 +00:00
|
|
|
|
|
|
|
BIN=avahi-daemon
|
|
|
|
DEFAULT=/etc/default/$BIN
|
|
|
|
OPTIONS="-D"
|
|
|
|
RUN_D=/var/run/$BIN
|
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
start() {
|
2006-10-15 21:03:30 +00:00
|
|
|
[ -f $DEFAULT ] && . $DEFAULT
|
2006-10-04 20:57:49 +00:00
|
|
|
mkdir -p $RUN_D
|
|
|
|
$BIN $OPTIONS
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2006-07-23 17:11:35 +00:00
|
|
|
$BIN -k
|
2006-10-04 20:57:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
reload() {
|
2006-07-23 17:11:35 +00:00
|
|
|
$BIN -r
|
2006-10-04 20:57:49 +00:00
|
|
|
}
|
2006-07-23 17:11:35 +00:00
|
|
|
|