mirror of https://github.com/hak5/openwrt.git
firewall: move include sourcing into a subshell, this makes the firewall init immune against exit in the include scripts
SVN-Revision: 25835lede-17.01
parent
d1f44a7598
commit
13333a6742
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
PKG_NAME:=firewall
|
PKG_NAME:=firewall
|
||||||
|
|
||||||
PKG_VERSION:=2
|
PKG_VERSION:=2
|
||||||
PKG_RELEASE:=22
|
PKG_RELEASE:=23
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
|
|
@ -271,8 +271,10 @@ fw_load_notrack_zone() {
|
||||||
fw_load_include() {
|
fw_load_include() {
|
||||||
local name="$1"
|
local name="$1"
|
||||||
|
|
||||||
local path; config_get path ${name} path
|
local path
|
||||||
[ -e $path ] && . $path
|
config_get path ${name} path
|
||||||
|
|
||||||
|
[ -e $path ] && ( . $path )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue