diy.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. SHELL_FOLDER=$(dirname $(readlink -f "$0"))
  3. svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/x86/files target/linux/x86/files
  4. rm -rf target/linux/x86/files/.svn
  5. svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/x86/patches-5.15 target/linux/x86/patches-5.15
  6. rm -rf target/linux/x86/patches-5.15/.svn
  7. curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk
  8. curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/x86/base-files/etc/board.d/02_network -o target/linux/x86/base-files/etc/board.d/02_network
  9. sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += kmod-usb-hid kmod-mmc kmod-sdhci usbutils pciutils lm-sensors-detect kmod-alx kmod-vmxnet3 kmod-igbvf kmod-iavf kmod-bnx2x kmod-pcnet32 kmod-tulip kmod-r8125 kmod-8139cp kmod-8139too kmod-i40e kmod-drm-i915 kmod-drm-amdgpu kmod-mlx4-core kmod-mlx5-core fdisk lsblk kmod-phy-broadcom/' target/linux/x86/Makefile
  10. mv -f tmp/r81* feeds/kiddin9/
  11. sed -i 's,kmod-r8169,kmod-r8168,g' target/linux/x86/image/64.mk
  12. sed -i 's/256/1024/g' target/linux/x86/image/Makefile
  13. echo '
  14. CONFIG_ACPI=y
  15. CONFIG_X86_ACPI_CPUFREQ=y
  16. CONFIG_NR_CPUS=512
  17. CONFIG_MMC=y
  18. CONFIG_MMC_BLOCK=y
  19. CONFIG_SDIO_UART=y
  20. CONFIG_MMC_TEST=y
  21. CONFIG_MMC_DEBUG=y
  22. CONFIG_MMC_SDHCI=y
  23. CONFIG_MMC_SDHCI_ACPI=y
  24. CONFIG_MMC_SDHCI_PCI=y
  25. ' >> ./target/linux/x86/config-5.15
  26. sed -i "s/enabled '0'/enabled '1'/g" feeds/packages/utils/irqbalance/files/irqbalance.config