init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enabl...
[openwrt/svn-archive/archive.git] / libs / avahi / files / avahi-daemon.init
index 81ceb9b9391676d249cbfeda04dfde3678473d89..f8bee67090b5da7bd71f56413fb52225a9b46b8e 100644 (file)
@@ -5,9 +5,9 @@ BIN=avahi-daemon
 DEFAULT=/etc/default/$BIN
 OPTIONS="-D"
 RUN_D=/var/run/$BIN
-[ -f $DEFAULT ] && . $DEFAULT
 
 start() {
+       [ -f $DEFAULT ] && . $DEFAULT
        mkdir -p $RUN_D
        $BIN $OPTIONS
 }