Skip to content

Commit

Permalink
创建 diy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
3wlh committed Oct 5, 2024
1 parent 71ea82a commit 9c2af05
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Configs/diy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
#=================================================
shopt -s extglob

sed -i '/$(curdir)\/compile:/c\$(curdir)/compile: package/opkg/host/compile' package/Makefile
sed -i "s/DEFAULT_PACKAGES:=/DEFAULT_PACKAGES:=luci-base luci-app-advancedplus luci-app-firewall luci-app-opkg luci-app-upnp \
luci-app-wizard luci-compat luci-lib-ipkg luci-lib-fs \
coremark wget-ssl curl autocore htop nano zram-swap kmod-lib-zstd kmod-tcp-bbr bash openssh-sftp-server block-mount resolveip ds-lite swconfig luci-app-fan luci-app-fileassistant /" include/target.mk

sed -i "s/procd-ujail//" include/target.mk
sed -i "s/procd-seccomp//" include/target.mk

sed -i 's/Os/O2/g' include/target.mk
sed -i "/mediaurlbase/d" package/feeds/*/luci-theme*/root/etc/uci-defaults/*
sed -i 's/=bbr/=cubic/' package/kernel/linux/files/sysctl-tcp-bbr.conf

0 comments on commit 9c2af05

Please sign in to comment.