OSDN Git Service

luci-app-unblockneteasemusic: adapted to ucode upgrade
authorZiMing Mo <msylgj@immortalwrt.org>
Mon, 11 Apr 2022 14:58:29 +0000 (22:58 +0800)
committerZiMing Mo <msylgj@immortalwrt.org>
Mon, 11 Apr 2022 14:58:29 +0000 (22:58 +0800)
Signed-off-by: ZiMing Mo <msylgj@immortalwrt.org>
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