firewall: use uci_get_state() wrapper
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 17 May 2010 19:38:13 +0000 (19:38 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 17 May 2010 19:38:13 +0000 (19:38 +0000)
SVN-Revision: 21493

package/firewall/files/lib/core.sh

index f37b1e69612b03c4c794b43b58aa52f817387ff1..d0b87a770b8025a94b172eb7fe92f0b65cef2e2b 100644 (file)
@@ -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}))
 }