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>
14 lines
422 B
Bash
14 lines
422 B
Bash
#!/bin/sh
|
|
#
|
|
# 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
|
|
|
|
/usr/sbin/safe-search-maintenance
|
|
/usr/sbin/safe-search-update
|
|
#/etc/init.d/dnsmasq reload #safe-search-update does this for us.
|
|
|
|
exit 0
|