check for NO_DNSMASQ after config loading
Signed-off-by: Stan Domula <stan.domula@smartrac-group.com>
This commit is contained in:
@ -1181,7 +1181,6 @@ while :; do
|
|||||||
--no-dnsmasq)
|
--no-dnsmasq)
|
||||||
shift
|
shift
|
||||||
NO_DNSMASQ=1
|
NO_DNSMASQ=1
|
||||||
NO_DNS=1
|
|
||||||
;;
|
;;
|
||||||
--redirect-to-localhost)
|
--redirect-to-localhost)
|
||||||
shift
|
shift
|
||||||
@ -1236,6 +1235,11 @@ if [[ $# -lt 1 && $FIX_UNMANAGED -eq 0 && -z "$STOP_ID" &&
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set NO_DNS, if dnsmasq is disabled
|
||||||
|
if [[ $NO_DNSMASQ -eq 1 ]]; then
|
||||||
|
NO_DNS=1
|
||||||
|
fi
|
||||||
|
|
||||||
trap "cleanup_lock" EXIT
|
trap "cleanup_lock" EXIT
|
||||||
|
|
||||||
if ! init_lock; then
|
if ! init_lock; then
|
||||||
|
Reference in New Issue
Block a user