]> git.meshlink.io Git - catta/blobdiff - initscript/fedora/avahi-dnsconfd.in
Make init scripts fail faster; patch from scop
[catta] / initscript / fedora / avahi-dnsconfd.in
index 4b96e943b567cef7075e348ad3df746100bdbec0..284c10bf8d62d568eaa842b18680735ebb0fb8c7 100644 (file)
@@ -8,22 +8,22 @@
 #       on the local LAN. This is useful for configuring unicast DNS servers in \
 #       a DHCP-like fashion with mDNS.
 # processname: avahi-dnsconfd
-# config: 
-
-OTHER_AVAHI_OPTS=""
-
-# Source function library.
-. /etc/init.d/functions
-. /etc/sysconfig/network
+# config:
 
 AVAHI_BIN=@sbindir@/avahi-dnsconfd
 
-if [ $1 == 'status' ]; then
+if [ "$1" == 'status' ]; then
     test -x $AVAHI_BIN || exit 4
-else 
+else
     test -x $AVAHI_BIN || exit 5
 fi
 
+OTHER_AVAHI_OPTS=""
+
+# Source function library.
+. /etc/init.d/functions
+. /etc/sysconfig/network
+
 LOCKFILE=/var/lock/subsys/avahi-dnsconfd
 
 base=${0##*/}
@@ -88,7 +88,7 @@ case "$1" in
        restart
        ;;
   reload)
-        reload 
+        reload
        ;;
   condrestart)
        if [ -f $LOCKFILE ]; then
@@ -102,4 +102,3 @@ case "$1" in
 esac
 
 exit $RETVAL
-