Skip to content

Commit

Permalink
Update run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored May 24, 2017
1 parent d0cfba1 commit 8dfbb73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dnsmasq/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ CONFIG_PATH=/data/options.json
DEFAULTS=$(jq --raw-output '.domain' $CONFIG_PATH)
FORWARDS=$(jq --raw-output '.forwards | length' $CONFIG_PATH)
HOSTS=$(jq --raw-output '.hosts | length' $CONFIG_PATH)
INTERFACE=$(jq --raw-output '.interface | length' $CONFIG_PATH)

# Set interface
echo "interface=$INTERFACE" >> /etc/dnsmasq.conf

# Add default forward servers
for line in $DEFAULTS; do
Expand Down

0 comments on commit 8dfbb73

Please sign in to comment.