mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
net/safe-search: Fix double installation bug
If safe search is built directly into an image, the /etc/config/dhcp file will have multiple entries added to it after using sysupgrade for the nth time (2 or more sysupgrade cycles). In /etc/config/dhcp, this bug creates duplicate entries like this: config dnsmasq list addnhosts '/etc/safe-search/enabled' list addnhosts '/etc/safe-search/enabled' This patch ensures that safe search only registers itself one time. Signed-off-by: Gregory L. Dietsche <gregory.dietsche@cuw.edu>
This commit is contained in:
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=safe-search
|
PKG_NAME:=safe-search
|
||||||
PKG_VERSION:=1.0.0
|
PKG_VERSION:=1.0.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_MAINTAINER:=Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
|
PKG_MAINTAINER:=Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Copyright (c) 2018 Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
|
# Copyright (c) 2018 Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
|
||||||
# This is free software, licensed under the MIT License
|
# This is free software, licensed under the MIT License
|
||||||
#
|
#
|
||||||
|
uci del_list dhcp.@dnsmasq[0].addnhosts=/etc/safe-search/enabled
|
||||||
uci add_list dhcp.@dnsmasq[0].addnhosts=/etc/safe-search/enabled
|
uci add_list dhcp.@dnsmasq[0].addnhosts=/etc/safe-search/enabled
|
||||||
uci commit dhcp
|
uci commit dhcp
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user