diy.sh 641 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. shopt -s extglob
  3. SHELL_FOLDER=$(dirname $(readlink -f "$0"))
  4. rm -rf package/feeds/kiddin9/{firewall,rtl*,base-files,netifd}
  5. rm -rf devices/common/patches/{glinet,imagebuilder.patch,iptables.patch,targets.patch,kernel-defaults.patch,disable_flock.patch}
  6. sed -i "s/BOARD:=mediatek$/BOARD:=mediatek_gl/" target/linux/mediatek/Makefile
  7. mv -f target/linux/mediatek target/linux/mediatek_gl
  8. rm -rf toolchain/musl
  9. svn co https://github.com/openwrt/openwrt/branches/openwrt-22.03/toolchain/musl toolchain/musl
  10. sed -i "/mtk_openwrt_feed/d" feeds.conf
  11. sed -i "/gl_feed_common/d" feeds.conf
  12. sed -i "/gl_feed_21_02/d" feeds.conf