forked from cooip-jm/About-openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash.sh
More file actions
29 lines (25 loc) · 786 Bytes
/
bash.sh
File metadata and controls
29 lines (25 loc) · 786 Bytes
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
#!/bin/bash
#基础环境
#官方openwrt安装中文、和设置时区和一些基础环境的,脚本。
##运行
### wget -O - https://raw.githubusercontent.com/cooip-jm/About-openwrt/main/bash.sh | sh -s -- -v
###
#或者打自己单行复制粘贴执行。
#不限制系统架构
#
echo "配置时区"
uci set system.@system[0].zonename='Asia/Shanghai'
uci set system.@system[0].timezone='CST-8'
uci commit system
echo "换源"
sed -i 's/downloads.openwrt.org/mirrors.tuna.tsinghua.edu.cn\/openwrt/g' /etc/opkg/distfeeds.conf
opkg update
#
echo "安装中文以及一些基础工具"
opkg remove dnsmasq
opkg install luci-i18n-base-zh-cn bash dnsmasq-full curl ca-certificates unzip nano iperf3
#
echo "基础环境安装完成"
#
echo "结束,准备重启openwrt"
reboot