forked from huangqian8/Cloud-N1-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.sh
26 lines (20 loc) · 1020 Bytes
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
cd openwrt
# Modify default IP
sed -i 's/192.168.1.1/192.168.1.2/g' package/base-files/files/bin/config_generate
#修改密码
sed -i 's/^root:.*:/root:$1$q6Qf.IUu$Bd2tIMFHYYNOsmsIRBwHC0:19650:0:99999:7:::/g' package/base-files/files/etc/shadow
# Add luci-app-passwall2
# git clone https://github.com/xiaorouji/openwrt-passwall-packages.git package-temp
# cp -r package-temp/* package/
# rm -rf package-temp
# git clone https://github.com/xiaorouji/openwrt-passwall2.git package-temp
# mv -f package-temp/luci-app-passwall2 package/
# rm -rf package-temp
sed -i 's/+firewall/+uci-firewall/g' feeds/luci/applications/luci-app-firewall/Makefile
# Add luci-app-amlogic
git clone https://github.com/ophub/luci-app-amlogic.git package-temp/luci-app-amlogic
mv -f package-temp/luci-app-amlogic/luci-app-amlogic package/
rm -rf package-temp
git clone https://github.com/muink/homeproxy.git package/luci-app-homeproxy
git clone --depth=1 https://github.com/vernesong/OpenClash.git package/luci-app-openclash