openwrtv3/openwrt/package/howl/files/mDNSResponder.init
Nicolas Thill 26b3433e35 Add howl package
SVN-Revision: 907
2005-05-15 12:34:56 +00:00

20 lines
315 B
Bash

#!/bin/sh
DEFAULT=/etc/default/mDNSResponder
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 $?