Revert "default-settings: set dnsmasq logfacility via uci config"

This reverts commit b0865c82218dfea84ca865a9a6da38571f2cfd9c.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2024-05-09 02:49:01 +08:00
parent b0865c8221
commit b3b46ba4f3
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 3 additions and 11 deletions

View File

@ -6,7 +6,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=default-settings
PKG_RELEASE:=28
PKG_RELEASE:=29
PKG_LICENSE:=GPL-2.0-only

View File

@ -12,15 +12,8 @@ if ! uci -q get system.@imm_init[0].lang > "/dev/null"; then
EOF
fi
if ! uci -q get system.@imm_init[0].dhcp > "/dev/null"; then
uci -q batch <<-EOF
set dhcp.@dnsmasq[0].logfacility="/dev/null"
commit dhcp
set system.@imm_init[0].dhcp="1"
commit system
EOF
fi
sed -i "/log-facility/d" "/etc/dnsmasq.conf"
echo "log-facility=/dev/null" >> "/etc/dnsmasq.conf"
ln -sf "/sbin/ip" "/usr/bin/ip"

View File

@ -27,7 +27,6 @@ config dnsmasq
option ednspacket_max 1232
option filter_aaaa 0
option filter_a 0
option logfacility /dev/null
#list addnmount /some/path # read-only mount path to expose it to dnsmasq
config dhcp lan