Signed-off-by: Roman I Khimov <khimov@altell.ru>
SECTION = "console/network"
LICENSE = "GPL"
+PR = "r1"
+
#at least versions 2.15 and prior are moved to the archive folder on the server
SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(bb.data.getVar('PV',d,1).split('.')[1]) > 15]}dnsmasq-${PV}.tar.gz;name=dnsmasq-${PV} \
file://init \
start-stop-daemon -K -x $DAEMON
echo "done."
;;
+ status)
+ echo -n "dnsmasq "
+ start-stop-daemon -q -K -t -x $DAEMON
+ RET=$?
+ if [ "$RET" == "0" ]; then
+ PID=`cat /var/run/dnsmasq.pid`
+ echo "($PID) is running"
+ else
+ echo "is not running"
+ exit $RET
+ fi
+ ;;
restart)
echo "restarting $DESC: $NAME... "
$0 stop
echo "done."
;;
*)
- echo "Usage: $0 {start|stop|restart|reload}"
+ echo "Usage: $0 {start|stop|status|restart|reload}"
exit 1
;;
esac