uClibc: fix version check for 0.9.32
[openwrt.git] / package / firewall / files / lib / fw.sh
index 3549f8a..16a39b6 100644 (file)
@@ -218,3 +218,12 @@ fw_get_family_mode() {
        esac
 }
 
+fw_get_negation() {
+       local _var="$1"
+       local _flag="$2"
+       local _ipaddr="$3"
+
+       [ "${_ipaddr#!}" != "$_ipaddr" ] && \
+               export -n -- "$_var=! $_flag ${_ipaddr#!}" || \
+               export -n -- "$_var=${_ipaddr:+$_flag $_ipaddr}"
+}
This page took 0.022135 seconds and 4 git commands to generate.