port lots of init scripts over to rc.common (more to come)
[openwrt/svn-archive/archive.git] / libs / howl / files / mDNSResponder.init
index 292280f7c1c0067a28f985a60f96f2089d2a9ab0..a3a575781e83625f7dfd9763b2a18a77b81bd457 100644 (file)
@@ -5,16 +5,11 @@ RUN_D=/var/run
 PID_F=$RUN_D/mDNSResponder.pid
 [ -f $DEFAULT ] && . $DEFAULT
 
-case $1 in
- start)
-  [ -d $RUN_D ] || mkdir -p $RUN_D
-  mDNSResponder $OPTIONS
-  ;;
- stop)
-  [ -f $PID_F ] && kill $(cat $PID_F)
-  ;;
- *)
-  echo "usage: $0 (start|stop)"
-  exit 1
-esac
-exit $?
+start() {
+       [ -d $RUN_D ] || mkdir -p $RUN_D
+       mDNSResponder $OPTIONS
+}
+stop() {
+       [ -f $PID_F ] && kill $(cat $PID_F)
+}
+