#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
	# Add meshname hosts file to dnsmasq
	if ! uci -q get dhcp.@dnsmasq[0].addnhosts | grep -q meshname; then
		uci add_list dhcp.@dnsmasq[0].addnhosts='/tmp/hosts/meshname'
		uci commit dhcp
	fi
	/etc/init.d/meshname-dns enable
}
exit 0
