Skip to content

Commit

Permalink
fix: Check dnsmasq
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed Jan 26, 2024
1 parent 3503b86 commit ebeefeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ configureDNS() {
DNSMASQ_OPTS=$(echo "$DNSMASQ_OPTS" | sed 's/\t/ /g' | tr -s ' ' | sed 's/^ *//')

[[ "$DEBUG" == [Yy1]* ]] && set -x
$DNSMASQ ${DNSMASQ_OPTS:+ $DNSMASQ_OPTS}
if ! $DNSMASQ ${DNSMASQ_OPTS:+ $DNSMASQ_OPTS}; then
error "Failed to start dnsmasq, reason: $?" && exit 29
fi
{ set +x; } 2>/dev/null
[[ "$DEBUG" == [Yy1]* ]] && echo

Expand Down

0 comments on commit ebeefeb

Please sign in to comment.