Fix the split_append function so that codec modules are properly enabled.
authorMichael Geddes <openwrt@frog.wheelycreek.net>
Fri, 16 Jan 2009 23:06:43 +0000 (23:06 +0000)
committerMichael Geddes <openwrt@frog.wheelycreek.net>
Fri, 16 Jan 2009 23:06:43 +0000 (23:06 +0000)
contrib/package/asterisk-xip/files/uci/asteriskuci

index b948692..6f08dff 100755 (executable)
@@ -38,14 +38,14 @@ is_in_list(){
        return 1
 }
 
-split_append() {
+split_append() { # {list} {prefix} {item} {func call}
        local lhs="$2"
        local rhs="$3"
        
        while [ ! -z "$rhs" ] ; do
                cur=${rhs%%,*}
                nvar=${rhs#*,}
-               [ -z $4 ] || eval "$4 ${cur}"
+               [ -z "$5" ] || eval "$5 ${cur}"
                append $1 "${lhs}${cur}" "$4"
                [ "$nvar" == "$rhs" ] && break
                rhs=${nvar}