generated from P3TERX/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewifi-d2-part2.sh
51 lines (43 loc) · 1.85 KB
/
newifi-d2-part2.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
49
50
51
#!/bin/bash
#
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# https://github.com/P3TERX/Actions-OpenWrt
# File name: diy-part2.sh
# Description: OpenWrt DIY script part 2 (After Update feeds)
#
#device_name='Newifi3-D2'
#wifi_name='Newifi3'
#lan_ip='192.168.2.1' # Lan Ip地址
#utc_name='Asia\/Shanghai' # 时区
# 修改机器名称
sed -i "s/OpenWrt/Newifi3-D2/g" package/base-files/files/bin/config_generate
# 设置lan ip
sed -i "s/192.168.1.1/192.168.99.1/g" package/base-files/files/bin/config_generate
# 修改默认时区
sed -i "s/'UTC'/'CST-8'\n set system.@system[-1].zonename='Asia\/Shanghai'/g" package/base-files/files/bin/config_generate
# 修改wifi名称
sed -i "s/OpenWrt/Newifi3/g" package/kernel/mac80211/files/lib/wifi/mac80211.sh
# 修改默认主题
sed -i 's/bootstrap/rosy/g' feeds/luci/collections/luci/Makefile
# 去除默认主题
#sed -i '/set luci.main.mediaurlbase=\/luci-static\/bootstrap/d' feeds/luci/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap
# 修改内核
# sed -i 's/KERNEL_PATCHVER:=5.4/KERNEL_PATCHVER:=4.19/g' ./target/linux/x86/Makefile
# sed -i 's/KERNEL_TESTING_PATCHVER:=5.4/KERNEL_TESTING_PATCHVER:=4.19/g' ./target/linux/x86/Makefile
# 更改软件包
#rm -rf package/lean/openwrt-packages/small/ipt2socks
#rm -rf package/lean/openwrt-packages/small/shadowsocksr-libev
#rm -rf package/lean/openwrt-packages/small/pdnsd-alt
#rm -rf package/lean/openwrt-packages/small/verysync
#rm -rf package/lean/openwrt-packages/small/luci-app-verysync
#rm -rf package/lean/kcptun
#rm -rf package/lean/trojan
#rm -rf package/lean/v2ray
#rm -rf package/lean/luci-app-kodexplorer
#rm -rf package/lean/luci-app-pppoe-relay
#rm -rf package/lean/luci-app-pptp-server
#rm -rf package/lean/luci-app-v2ray-server