OSDN Git Service

luci-app-unblockneteasemusic: adapted to ucode upgrade
[immortalwrt/luci.git] / applications / luci-app-unblockneteasemusic / root / etc / init.d / unblockneteasemusic
index 69b2f8b..4972d63 100755 (executable)
@@ -182,7 +182,7 @@ start_service()
        fi
 
        json_dump -i >"$tmp.json"
-       if ucode -S -i "$RULES_UC" -E "$tmp.json" >"$tmp.nft" \
+       if utpl -F "$tmp.json" -S "$RULES_UC" >"$tmp.nft" \
                && ! cmp -s "$tmp.nft" "$RULES_NFT"; then
                echo "table inet chk {include \"$tmp.nft\";}" >"$tmp.nft.chk"
                if nft -f "$tmp.nft.chk" -c; then