TheWildJames 2 месяцев назад
Родитель
Сommit
796e69c99a
1 измененных файлов с 4 добавлено и 5 удалено
  1. 4 5
      .github/actions/networking/action.yml

+ 4 - 5
.github/actions/networking/action.yml

@@ -19,7 +19,7 @@ runs:
       working-directory: ${{ github.workspace }}/kernel/common
       run: |
         set -euo pipefail
-        PATCH_URL="https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/bbr3/0001-net-tcp-backport-BBRv3-to-$ANDROID_VER-$KERNEL_VER.patch"
+        PATCH_URL="https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/bbr3/0001-net-tcp-backport-BBRv3-to-${{ inputs.version }}.patch"
         if curl -f -Ls "$PATCH_URL" -o temp.patch; then
           patch -p1 -F 3 < temp.patch
           rm temp.patch
@@ -87,21 +87,20 @@ runs:
         sed -i 's/CONFIG_IP_SET_MAX/65534/g' net/netfilter/ipset/ip_set_core.c
 
     - name: Apply NTSync Patch
-      if: false
       shell: bash
       working-directory: ${{ github.workspace }}/kernel/common
       run: |
         set -euo pipefail
 
         echo "Using patch: $(basename $NTSYNC_PATCH)"
-        if [[ ${{ inputs.versi0n }} = "android16-6.12" ]}; then
+        if [[ ${{ inputs.version }} = "android16-6.12" ]]; then
           echo "Removing pre-existing ntsync files for android16-6.12"
           rm -f include/uapi/linux/ntsync.h
           rm -f drivers/misc/ntsync.c
         fi
 
-        cp ${{ github.workspace }}/kernel_patches/common/ntsync/ntsync_compat_${{ inputs.versi0n }}.patch ${{ github.workspace }}/kernel/common
-        patch -p1 ntsync_compat_${{ inputs.versi0n }}.patch
+        cp ${{ github.workspace }}/kernel_patches/common/ntsync/ntsync_compat_${{ inputs.version }}.patch ${{ github.workspace }}/kernel/common
+        patch -p1 ntsync_compat_${{ inputs.version }}.patch
         
         cp ${{ github.workspace }}/kernel_patches/common/ntsync/ntsync_base.patch ${{ github.workspace }}/kernel/common
         patch -p1 < ntsync_base.patch