kernel_6.1.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. rm -rf target/linux package/kernel package/boot package/firmware/linux-firmware package/network/config/wifi-scripts config/Config-images.in
  3. mkdir new; cp -rf .git new/.git
  4. cd new
  5. git reset --hard origin/master
  6. cp -rf --parents target/linux package/kernel package/boot package/firmware/linux-firmware include/kernel-6.1 package/network/config/wifi-scripts config/Config-images.in ../
  7. cd -
  8. git_clone_path master https://github.com/coolsnowwolf/lede target/linux/generic/hack-6.1
  9. curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/generic/pending-6.1/613-netfilter_optional_tcp_window_check.patch -o target/linux/generic/pending-6.1/613-netfilter_optional_tcp_window_check.patch
  10. rm -rf target/linux/generic/hack-6.1/{410-block-fit-partition-parser.patch,724-net-phy-aquantia*,720-net-phy-add-aqr-phys.patch}
  11. mkdir package/kernel/mt76/patches
  12. curl -sfL https://raw.githubusercontent.com/immortalwrt/immortalwrt/master/package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch -o package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch
  13. rm -rf package/feeds/kiddin9/quectel_Gobinet
  14. cd feeds/packages
  15. rm -rf libs/xr_usb_serial_common net/coova-chilli net/xtables-addons
  16. git_clone_path master https://github.com/openwrt/packages libs/xr_usb_serial_common
  17. git_clone_path master https://github.com/openwrt/packages net/coova-chilli
  18. git_clone_path master https://github.com/openwrt/packages net/xtables-addons
  19. cd -
  20. sed -i 's/=bbr/=cubic/' package/kernel/linux/files/sysctl-tcp-bbr.conf
  21. sed -i "s/tty\(0\|1\)::askfirst/tty\1::respawn/g" target/linux/*/base-files/etc/inittab
  22. sed -i "s/no-lto,/no-lto no-mold,/" include/package.mk
  23. echo "
  24. CONFIG_TESTING_KERNEL=y
  25. " >> devices/common/.config