#!/bin/bash #=============================================== # Description: DIY script # File name: diy-script.sh # Lisence: MIT # Author: P3TERX # Blog: https://p3terx.com #=============================================== # update ubus git HEAD cp -f $GITHUB_WORKSPACE/configfiles/ubus_Makefile package/system/ubus/Makefile # 近期istoreos网站文件服务器不稳定,临时增加一个自定义下载网址 sed -i "s/push @mirrors, 'https:\/\/mirror2.openwrt.org\/sources';/&\\npush @mirrors, 'https:\/\/github.com\/xiaomeng9597\/files\/releases\/download\/iStoreosFile';/g" scripts/download.pl # 修改uhttpd配置文件,启用nginx # sed -i "/.*uhttpd.*/d" .config # sed -i '/.*\/etc\/init.d.*/d' package/network/services/uhttpd/Makefile # sed -i '/.*.\/files\/uhttpd.init.*/d' package/network/services/uhttpd/Makefile sed -i "s/:80/:81/g" package/network/services/uhttpd/files/uhttpd.config sed -i "s/:443/:4443/g" package/network/services/uhttpd/files/uhttpd.config cp -a $GITHUB_WORKSPACE/configfiles/etc/* package/base-files/files/etc/ # ls package/base-files/files/etc/ echo "CONFIG_PACKAGE_nginx=y CONFIG_PACKAGE_nginx-ssl=y CONFIG_PACKAGE_nginx-ssl-util=y CONFIG_PACKAGE_nginx-util=y CONFIG_PACKAGE_nginx-mod-luci=y CONFIG_PACKAGE_luci-nginx=y CONFIG_PACKAGE_default-settings=y" >> .config # 集成CPU性能跑分脚本 echo "CONFIG_PACKAGE_coremark=y" >> .config cp -f $GITHUB_WORKSPACE/configfiles/coremark/coremark-x86.sh package/base-files/files/bin/coremark.sh chmod 755 package/base-files/files/bin/coremark.sh # iStoreOS-settings git clone --depth=1 -b main https://github.com/xiaomeng9597/istoreos-settings package/default-settings # 定时限速插件 echo "CONFIG_PACKAGE_luci-app-eqosplus=y CONFIG_PACKAGE_luci-i18n-eqosplus-zh-cn=y" >> .config git clone --depth=1 https://github.com/sirpdboy/luci-app-eqosplus package/luci-app-eqosplus