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地址