From 6e98ed595a327e742c31affb73720c813262b731 Mon Sep 17 00:00:00 2001 From: juewuy Date: Fri, 2 Feb 2024 10:13:16 +0800 Subject: [PATCH] =?UTF-8?q?~=E5=A2=9E=E5=8A=A0srs-cn=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=20~=E4=BF=AE=E5=A4=8Dmips=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=86=85=E6=A0=B8=E4=B8=8B=E8=BD=BD=20~=E4=BF=AE=E5=A4=8Diptab?= =?UTF-8?q?les=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bin_update.yml | 3 ++- scripts/getdate.sh | 3 ++- scripts/start.sh | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bin_update.yml b/.github/workflows/bin_update.yml index 3d67a10..ed21842 100644 --- a/.github/workflows/bin_update.yml +++ b/.github/workflows/bin_update.yml @@ -24,7 +24,8 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: repository: juewuy/ShellCrash - ref: dev + fetch-depth: 1 + - name: Apt Update env: DEBIAN_FRONTEND: noninteractive diff --git a/scripts/getdate.sh b/scripts/getdate.sh index 8bb9889..a5cd067 100644 --- a/scripts/getdate.sh +++ b/scripts/getdate.sh @@ -942,7 +942,8 @@ setcustcore(){ #自定义内核 ${CRASHDIR}/start.sh webget ${TMPDIR}/github_api https://api.github.com/repos/${project}/releases/${api_url} release_tag=$(cat ${TMPDIR}/github_api | grep '"tag_name":' | awk -F '"' '{print $4}') release_date=$(cat ${TMPDIR}/github_api | grep '"published_at":' | awk -F '"' '{print $4}') - cat ${TMPDIR}/github_api | grep "browser_download_url" | grep -oE "https://github.com/${project}/releases/download.*linux.*${cpucore}.*\.gz\"$" | sed 's/"//' > ${TMPDIR}/core.list + [ -n "$(echo $cpucore | grep mips)" ] && cpu_type=mips || cpu_type=$cpucore + cat ${TMPDIR}/github_api | grep "browser_download_url" | grep -oE "https://github.com/${project}/releases/download.*linux.*${cpu_type}.*\.gz\"$" | sed 's/"//' > ${TMPDIR}/core.list rm -rf ${TMPDIR}/github_api # if [ -f ${TMPDIR}/core.list ];then diff --git a/scripts/start.sh b/scripts/start.sh index 26f63d3..9900b23 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1137,7 +1137,7 @@ start_tun(){ #iptables-tun [ "$1" = "all" ] && ip6tables -t mangle -A PREROUTING -p tcp $ports -j shellcrashv6 } fi - } & + } } start_nft(){ #nftables-allinone #获取局域网host地址