#!/bin/bash
set -e
sed -e '/^#/d' -e '/^$/d'  /etc/dnsmasq.conf | grep . && exit 1
/usr/share/omix/mkconf
sed -i -e 's?^CONFIG_DIR=.*$?CONFIG_DIR=/etc/dnsmasq.d,\*.conf?' /etc/default/dnsmasq
systemctl restart dnsmasq

