generated from P3TERX/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 15
/
diy-part2-openwrt-master.sh
48 lines (36 loc) · 1.85 KB
/
diy-part2-openwrt-master.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
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
#
# https://github.com/P3TERX/Actions-OpenWrt
# File name: diy-part2.sh
# Description: OpenWrt DIY script part 2 (After Update feeds)
#
# Copyright (c) 2019-2024 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# Modify default theme
#sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci/Makefile
# Modify hostname
sed -i 's/OpenWrt/P3TERX-Router/g' package/base-files/files/bin/config_generate
# Modify default IP
sed -i 's/192.168.1.1/192.168.11.1/g' package/base-files/files/bin/config_generate
# git clone https://github.com/destan19/OpenAppFilter.git package/OpenAppFilter
# git clone -b lede https://github.com/jin3014test1/luci-app-smartdns.git package/luci-app-smartdns
git clone https://github.com/siwind/openwrt-vlmcsd package/vlmcsd
git clone https://github.com/siwind/luci-app-vlmcsd.git package/luci-app-vlmcsd
# git clone https://github.com/siwind/luci-app-usb_printer.git package/luci-app-usb_printer
# 加入E8820S支持
#wget https://gitee.com/jin3014/openwrt-swind/raw/master/target/linux/ramips/dts/mt7621_zte_e8820s.dts
#rsync -a mt7621_* target/linux/ramips/dts
wget https://raw.githubusercontent.com/jin3014test1/Actions-OpenWrt/main/0001-master-Add-ZTE-E8820S-with-MTK-SDK-partition-support.patch
patch -p1 -N < 0001-master-Add-ZTE-E8820S-with-MTK-SDK-partition-support.patch
rm 0001-master-Add-ZTE-E8820S-with-MTK-SDK-partition-support.patch
# smartdns
#cd openwrt
#sudo rm -rf feeds/luci/applications/luci-app-smartdns
#sudo rm -rf package/feeds/luci/luci-app-smartdns
#sudo rm -rf feeds/packages/net/smartdns
#sudo rm -rf package/feeds/packages/smartdns
#svn co https://github.com/kenzok8/small-package/trunk/luci-app-smartdns package/diy/luci-app-smartdns
#svn co https://github.com/kenzok8/small-package/trunk/smartdns package/diy/smartdns