mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
urlfilter: start urlfilter only if globally enabled
This commit is contained in:
parent
8d6d7626b8
commit
e650d27f76
2 changed files with 3 additions and 1 deletions
2
urlfilter/files/etc/config/urlfilter
Normal file
2
urlfilter/files/etc/config/urlfilter
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
config globals globals
|
||||
option enable 1
|
||||
|
|
@ -20,7 +20,7 @@ configure_firewall()
|
|||
}
|
||||
|
||||
start_service() {
|
||||
if [ -f "/etc/config/urlfilter" ]; then
|
||||
if [ "$(uci -q get urlfilter.globals.enable)" == "1" ]; then
|
||||
procd_open_instance urlfilter
|
||||
procd_set_param command ${PROG}
|
||||
configure_firewall
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue