summaryrefslogtreecommitdiff
path: root/package/avahi
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-03-01 21:19:11 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-03-01 21:19:11 +0100
commitf2463372c9e35cf640f1b0ccede0314a239b0d25 (patch)
treed0136965860008a32e72bfac7442bc35d694758c /package/avahi
parent72a7d18f2fa0330212333dd95c18f2278c021cee (diff)
fix startup scripts, when variable is not set in /etc/rc.conf
Diffstat (limited to 'package/avahi')
-rw-r--r--package/avahi/files/avahi-daemon.init34
1 files changed, 17 insertions, 17 deletions
diff --git a/package/avahi/files/avahi-daemon.init b/package/avahi/files/avahi-daemon.init
index 79170b840..660d713e9 100644
--- a/package/avahi/files/avahi-daemon.init
+++ b/package/avahi/files/avahi-daemon.init
@@ -5,22 +5,22 @@
case $1 in
autostop) ;;
- autostart)
- test x"${avahi:-NO}" = x"NO" && exit 0
- exec sh $0 start
- ;;
- start)
- avahi-daemon -D
- ;;
- stop)
- avahi-daemon -k
- ;;
- restart)
- sh $0 stop
- sh $0 start
- ;;
- *)
- echo "usage: $0 { start | stop | reload }"
- exit 1
+autostart)
+ test x"${avahi:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ avahi-daemon -D
+ ;;
+stop)
+ avahi-daemon -k
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "usage: $0 { start | stop | reload }"
+ exit 1
esac
exit $?