Make dnsmasq.conf readable from everyone

Fix #103
This commit is contained in:
oblique
2015-08-17 20:16:26 +03:00
parent 7420e9bf38
commit d19aaa2f56

View File

@ -1509,6 +1509,7 @@ fi
if [[ "$SHARE_METHOD" == "bridge" ]]; then if [[ "$SHARE_METHOD" == "bridge" ]]; then
echo "bridge=${BRIDGE_IFACE}" >> $CONFDIR/hostapd.conf echo "bridge=${BRIDGE_IFACE}" >> $CONFDIR/hostapd.conf
else else
umask 0033
# dnsmasq config (dhcp + dns) # dnsmasq config (dhcp + dns)
DNSMASQ_VER=$(dnsmasq -v | grep -m1 -oE '[0-9]+(\.[0-9]+)*\.[0-9]+') DNSMASQ_VER=$(dnsmasq -v | grep -m1 -oE '[0-9]+(\.[0-9]+)*\.[0-9]+')
version_cmp $DNSMASQ_VER 2.63 version_cmp $DNSMASQ_VER 2.63
@ -1524,6 +1525,7 @@ dhcp-range=${GATEWAY%.*}.1,${GATEWAY%.*}.254,255.255.255.0,24h
dhcp-option=option:router,${GATEWAY} dhcp-option=option:router,${GATEWAY}
EOF EOF
[[ $ETC_HOSTS -eq 0 ]] && echo no-hosts >> $CONFDIR/dnsmasq.conf [[ $ETC_HOSTS -eq 0 ]] && echo no-hosts >> $CONFDIR/dnsmasq.conf
umask $SCRIPT_UMASK
fi fi
# initialize WiFi interface # initialize WiFi interface