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