mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
safe-search: Dynamic Updates
Ensure that the best available IP is always used for all supported safe-search providers. This is accomplished by periodically checking DNS for the most recent list of IP addresses associated with each provider. Signed-off-by: Gregory L. Dietsche <gregory.dietsche@cuw.edu>
This commit is contained in:
committed by
Paul Spooren
parent
0f21ed774c
commit
f2837d7470
@@ -1,13 +1,14 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2018 Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
|
||||
# Copyright (c) 2021 Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
|
||||
# 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 commit dhcp
|
||||
|
||||
#/etc/init.d/dnsmasq reload #safe-search-update does this for us.
|
||||
/usr/sbin/safe-search-maintenance
|
||||
/usr/sbin/safe-search-update
|
||||
#/etc/init.d/dnsmasq reload #safe-search-update does this for us.
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user