forked from Mike-qian/OpenWRT-R619AC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiy6.sh
17 lines (17 loc) · 1.41 KB
/
diy6.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#开启wifi
sed -i 's/wireless.${name}.disabled=1/wireless.${name}.disabled=0/g' ./package/kernel/mac80211/files/lib/wifi/mac80211.sh
#修改root密码
sed -i 's/root:::0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::/g' ./package/base-files/files/etc/shadow
#添加第三方软件源
sed -i 's/option check_signature 1/option check_signature 0/g' ./package/system/opkg/files/opkg-smime.conf
echo src/gz openwrt_kiddin9 https://op.supes.top/packages/arm_cortex-a7_neon-vfpv4 >> ./package/system/opkg/files/customfeeds.conf
#修改时区
sed -i 's/timezone:string:UTC'/timezone:string:CST-8'/g' ./package/base-files/files/etc/init.d/system
sed -i 's/zonename:string'/zonename:string:Asia'#/'Shanghai'/g' ./package/base-files/files/etc/init.d/system
#添加超频补丁,内核调教补丁#自动挂载硬盘补丁
#wget -P ./target/linux/ipq40xx/base-files/etc/init.d/ https://raw.githubusercontent.com/Mike-qian/dns2tcp/main/set-irq-affinity
wget -P ./target/linux/ipq40xx/base-files/etc/hotplug.d/block/ https://raw.githubusercontent.com/Mike-qian/dns2tcp/main/20-udisk-mount
wget -P ./target/linux/ipq40xx/patches-5.15/ https://raw.githubusercontent.com/Mike-qian/dns2tcp/main/999-ipq40xx-unlock-cpu-frequency.patch
chmod 0755 target/linux/ipq40xx/base-files/etc/init.d/set-irq-affinity
chmod 0755 target/linux/ipq40xx/base-files/etc/hotplug.d/block
chmod 0600 target/linux/ipq40xx/base-files/etc/hotplug.d/block/20-udisk-mount