惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
D
Docker
有赞技术团队
有赞技术团队
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
爱范儿
爱范儿
H
Help Net Security
美团技术团队
MyScale Blog
MyScale Blog
B
Blog RSS Feed
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
G
Google Developers Blog
月光博客
月光博客
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs

博客园 - bitwoods

Linux驱动开发:内核模块堆叠(1) Linux驱动开发:内核模块与普通应用的区别 Linux驱动开发:从一个最简单的模块开始 c++ prepareStatement使用like查询语句的方式 glog编译报错解决 阿里云Ubuntu服务器优化 linux c++程序使用MD5 串口AT与数据的混杂接收处理 蓝牙Mesh简介(一)设备标识:UUID和Mesh地址 MT7621 openWrt插件操作GPIO(mmap) adblock plus 您的地区不可用 OpenWRT:插件自启动 OpenWRT编译时修改时区与主机名 SC200L Android10启动和关机修改 ILI9881D驱动 ubuntu20.04 微信和迅雷安装包 开启power management功能有坑,ESP32串口频繁出现UART_BREAK中断 MAC地址与字符串的相互转化 ESP32音频开发板ESP32-Korvo V1.1踩坑
OpenWRT 修改固件默认显示中文
bitwoods · 2023-01-10 · via 博客园 - bitwoods

固件默认中文

基本上网上的多数都是安装之后的处理,少数是编译固件的,但是试过都没起作用,改lua的源码都不行(没仔细研究,试着改了下luci/modules/luci-base/luasrc/i18n.lua下lang的默认值,没起作用)

修改方法

直接在自建的启动脚本的start里面增加uci命令,若默认语言为auto,则改为中文
重新编译烧录,一切ok

    lang=`uci get luci.main.lang`
    if [ "${lang}" = "auto" ];then
        echo "luci lang auto,change it to chinese" > /dev/console
        uci set luci.main.lang="zh_cn"
        uci commit luci
    else
        echo "<<<<<<<<<<<<<luci lang not auto:${lang}>>>>>>>>>>" > /dev/console
    fi