mdns: fix having mulitple network entries in uci
authorFelix Fietkau <nbd@openwrt.org>
Wed, 2 Sep 2015 09:23:52 +0000 (09:23 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 2 Sep 2015 09:23:52 +0000 (09:23 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46764

package/network/services/mdns/files/mdns.init

index 19b003233008683517bf5e429f402547a41c04b1..c0f9155c069a876c38ed237c6b2546dad33989d8 100644 (file)
@@ -13,7 +13,7 @@ load_ifaces() {
        local network="$(uci get mdns.@mdns[-1].network)"
        for n in $network; do
                local device
-               json_load "$(ifstatus $network)"
+               json_load "$(ifstatus $n)"
                json_get_var device l3_device
                echo -n "$device "
        done