net/safe-search: Fix double installation bug
authorGregory L. Dietsche <gregory.dietsche@cuw.edu>
Wed, 12 Dec 2018 17:02:05 +0000 (11:02 -0600)
committerGregory L. Dietsche <gregory.dietsche@cuw.edu>
Wed, 12 Dec 2018 17:28:39 +0000 (11:28 -0600)
commit6a25e9b23888854d7eff15378eac98d29e3660ec
tree7fbca3f2068c6e7e947cd8169312fb2c7c5faad0
parent06b2dcd75259c5106868bee9bc289e802b2933f4
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>
net/safe-search/Makefile
net/safe-search/files/safe-search.defaults