2018-10-01 22:03:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2021-01-11 17:59:46 +00:00
|
|
|
# Copyright (c) 2021 Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
|
2018-10-01 22:03:12 +00:00
|
|
|
# This is free software, licensed under the MIT License
|
|
|
|
#
|
2018-12-12 17:02:05 +00:00
|
|
|
uci del_list dhcp.@dnsmasq[0].addnhosts=/etc/safe-search/enabled
|
2018-10-01 22:03:12 +00:00
|
|
|
uci add_list dhcp.@dnsmasq[0].addnhosts=/etc/safe-search/enabled
|
|
|
|
uci commit dhcp
|
|
|
|
|
2021-01-11 17:59:46 +00:00
|
|
|
/usr/sbin/safe-search-maintenance
|
2018-10-01 22:03:12 +00:00
|
|
|
/usr/sbin/safe-search-update
|
2021-01-11 17:59:46 +00:00
|
|
|
#/etc/init.d/dnsmasq reload #safe-search-update does this for us.
|
2018-10-01 22:03:12 +00:00
|
|
|
|
|
|
|
exit 0
|