projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
let ipkg fail when a package file to be installed is not found
[openwrt.git]
/
openwrt
/
package
/
avahi
/
files
/
avahi-daemon.init
1
#!/bin/sh
2
3
BIN=avahi-daemon
4
DEFAULT=/etc/default/$BIN
5
OPTIONS="-D"
6
RUN_D=/var/run/$BIN
7
[ -f $DEFAULT ] && . $DEFAULT
8
9
case $1 in
10
start)
11
mkdir -p $RUN_D
12
$BIN $OPTIONS
13
;;
14
stop)
15
$BIN -k
16
;;
17
reload)
18
$BIN -r
19
;;
20
*)
21
echo "usage: $0 (start|stop|reload)"
22
exit 1
23
esac
24
25
exit $?