check for NO_DNSMASQ after config loading

Signed-off-by: Stan Domula <stan.domula@smartrac-group.com>
This commit is contained in:
Stan Domula
2017-05-08 10:39:47 +02:00
parent e23fa72487
commit 49392a3472

View File

@ -1181,7 +1181,6 @@ while :; do
--no-dnsmasq)
shift
NO_DNSMASQ=1
NO_DNS=1
;;
--redirect-to-localhost)
shift
@ -1236,6 +1235,11 @@ if [[ $# -lt 1 && $FIX_UNMANAGED -eq 0 && -z "$STOP_ID" &&
exit 1
fi
# Set NO_DNS, if dnsmasq is disabled
if [[ $NO_DNSMASQ -eq 1 ]]; then
NO_DNS=1
fi
trap "cleanup_lock" EXIT
if ! init_lock; then