forked from P3TERX/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sh
38 lines (34 loc) · 1.25 KB
/
build.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
27
28
29
30
31
32
33
34
35
36
37
38
echo '--开始部署环境--'
sleep 3
sudo apt update
sudo -E apt-get -qq install $(curl -fsSL https://is.gd/depends_ubuntu_2204)
sudo -E apt-get -qq install libfuse-dev
sudo -E apt-get -qq install rename
sudo -E apt-get -qq install time
sudo -E apt-get -qq autoremove --purge
sudo -E apt-get -qq clean
df -Th
echo '--下载源码--'
sleep 3
git clone --depth 1 https://github.com/coolsnowwolf/lede -b master
cd lede
bash -c "$(curl -L https://github.com/No06/Xiaomi-CR660x-Actions/raw/main/diy-part1.sh)"
echo '--更新软件源--'
sleep 3
./scripts/feeds update -a
./scripts/feeds install -a
echo '--导入配置--'
sleep 3
rm .config
wget https://github.com/No06/Xiaomi-CR660x-Actions/raw/main/.config
wget https://github.com/No06/Xiaomi-CR660x-Actions/raw/main/overclock.patch
wget https://github.com/No06/Xiaomi-CR660x-Actions/raw/main/overclock_5_10.patch
mv overclock.patch target/linux/ramips/patches-5.4/102-mt7621-fix-cpu-clk-add-clkdev.patch
mv overclock_5_10.patch target/linux/ramips/patches-5.10/322-mt7621-fix-cpu-clk-add-clkdev.patch
make defconfig
make download -j8
find dl -size -1024c -exec ls -l {} \;
find dl -size -1024c -exec rm -f {} \;
echo '--开始编译--'
sleep 3
make -j$(nproc) || make -j1 || make -j1 V=s