Changeset 26382


Ignore:
Timestamp:
2011-03-30T22:29:17+02:00 (7 years ago)
Author:
jow
Message:

[package] firewall: prevent duplicate values in interface state vars

Location:
trunk/package/firewall
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/firewall/Makefile

    r26241 r26382  
    1010 
    1111PKG_VERSION:=2 
    12 PKG_RELEASE:=23 
     12PKG_RELEASE:=24 
    1313 
    1414include $(INCLUDE_DIR)/package.mk 
  • trunk/package/firewall/files/lib/core_interface.sh

    r25813 r26382  
    55        local item="$2" 
    66 
    7         local val="$(uci_get_state firewall core $var)" 
     7        local val=" $(uci_get_state firewall core $var) " 
     8        val="${val// $item / }" 
     9        val="${val# }" 
     10        val="${val% }" 
    811        uci_set_state firewall core $var "${val:+$val }$item" 
    912} 
Note: See TracChangeset for help on using the changeset viewer.