From: jow Date: Mon, 17 May 2010 19:38:13 +0000 (+0000) Subject: [package] firewall: use uci_get_state() wrapper X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/4a88a4e3b37c46552b6146de7c51724bd315b7e1 [package] firewall: use uci_get_state() wrapper git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21493 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/firewall/files/lib/core.sh b/package/firewall/files/lib/core.sh index f37b1e696..d0b87a770 100644 --- a/package/firewall/files/lib/core.sh +++ b/package/firewall/files/lib/core.sh @@ -84,7 +84,7 @@ fw_reload() { } fw_is_loaded() { - local bool=$(uci -q -P /var/state get firewall.core.loaded) + local bool=$(uci_get_state firewall.core.loaded) return $((! ${bool:-0})) }