From e302ec7196a4eabf77d223d5e29aab15f7b1e20a Mon Sep 17 00:00:00 2001 From: liuwen Date: Sat, 2 Nov 2024 18:00:05 +0800 Subject: [PATCH] modver is not assigned --- singbox/AKMBUILD | 2 +- singbox/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/singbox/AKMBUILD b/singbox/AKMBUILD index 025009b..aa5840f 100644 --- a/singbox/AKMBUILD +++ b/singbox/AKMBUILD @@ -1,7 +1,7 @@ modname=brutal _modsrcdir="/usr/src/tcp-brutal" -modver="1.0.3" +modver="MODVER" built_modules='brutal.ko' diff --git a/singbox/Dockerfile b/singbox/Dockerfile index 952761e..5636910 100644 --- a/singbox/Dockerfile +++ b/singbox/Dockerfile @@ -28,7 +28,7 @@ RUN TCP_BRUTAL_VERSION=$(curl -s https://api.github.com/repos/apernet/tcp-brutal # Copy and update AKMBUILD file COPY AKMBUILD /usr/src/tcp-brutal/ RUN cd /usr/src/tcp-brutal && \ - sed -i "s/modver=\".*\"/modver=\"1.0.3\"/" AKMBUILD && \ + sed -i "s/MODVER/$TCP_BRUTAL_VERSION_CLEAN/" AKMBUILD && \ akms install all && \ echo "Built tcp-brutal module for Sing-box version ${SINGBOX_VERSION}"