1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-02 21:27:38 +03:00

[package] firewall: bail out if uci is used in firewall include files

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30694 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-02-23 18:50:47 +00:00
parent ca25ff4717
commit 0ccb4cc6a9
2 changed files with 8 additions and 2 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=firewall
PKG_VERSION:=2
PKG_RELEASE:=45
PKG_RELEASE:=46
include $(INCLUDE_DIR)/package.mk

View File

@ -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
)
}