kernel: add md5sum of kernel
[openwrt.git] / package / firewall / files / lib / fw.sh
index 3549f8a..16a39b6 100644 (file)
@@ -218,3 +218,12 @@ fw_get_family_mode() {
        esac
 }
 
        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.030147 seconds and 4 git commands to generate.