Revert "default-settings: set dnsmasq logfacility via uci config"
This reverts commit b0865c8221.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
b0865c8221
commit
b3b46ba4f3
@ -6,7 +6,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=default-settings
|
PKG_NAME:=default-settings
|
||||||
PKG_RELEASE:=28
|
PKG_RELEASE:=29
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0-only
|
PKG_LICENSE:=GPL-2.0-only
|
||||||
|
|
||||||
|
|||||||
@ -12,15 +12,8 @@ if ! uci -q get system.@imm_init[0].lang > "/dev/null"; then
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! uci -q get system.@imm_init[0].dhcp > "/dev/null"; then
|
sed -i "/log-facility/d" "/etc/dnsmasq.conf"
|
||||||
uci -q batch <<-EOF
|
echo "log-facility=/dev/null" >> "/etc/dnsmasq.conf"
|
||||||
set dhcp.@dnsmasq[0].logfacility="/dev/null"
|
|
||||||
commit dhcp
|
|
||||||
|
|
||||||
set system.@imm_init[0].dhcp="1"
|
|
||||||
commit system
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
|
|
||||||
ln -sf "/sbin/ip" "/usr/bin/ip"
|
ln -sf "/sbin/ip" "/usr/bin/ip"
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,6 @@ config dnsmasq
|
|||||||
option ednspacket_max 1232
|
option ednspacket_max 1232
|
||||||
option filter_aaaa 0
|
option filter_aaaa 0
|
||||||
option filter_a 0
|
option filter_a 0
|
||||||
option logfacility /dev/null
|
|
||||||
#list addnmount /some/path # read-only mount path to expose it to dnsmasq
|
#list addnmount /some/path # read-only mount path to expose it to dnsmasq
|
||||||
|
|
||||||
config dhcp lan
|
config dhcp lan
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user