diff options
Diffstat (limited to 'package/firewall/files')
-rw-r--r-- | package/firewall/files/lib/core_init.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/package/firewall/files/lib/core_init.sh b/package/firewall/files/lib/core_init.sh index e93de1613..035647998 100644 --- a/package/firewall/files/lib/core_init.sh +++ b/package/firewall/files/lib/core_init.sh @@ -288,7 +288,13 @@ fw_load_include() { local path config_get path ${name} path - [ -e $path ] && ( . $path ) + [ -e $path ] && ( + config() { + fw_log error "You cannot use UCI in firewall includes!" >&2 + exit 1 + } + . $path + ) } |