Openwrt定制编译自己署名篇

傀儡师
2023-08-18 / 0 评论 / 259 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2023年08月18日,已超过273天没有更新,若内容或图片失效,请留言反馈。

1.修改默认源码的IP地址

我们找到源码的配置文件地址(这里以lede为例) lede/package/base-files/files/bin/config_generate

继续修改主机名

2.修改版本号

我们修改 lede/package/lean/default-settings/files/zzz-default-settings 文件中的 R22.3.1 3OpenWrt 。(注意OpenWrt后面的空格)

3.系统信息内添加编译者信息

我们修改lede/package/lean/autocore/files/arm/index.htmlede/package/lean/autocore/files/x86/index.htm

<tr><td width="33%"><%:Compiler author%></td><td>https://kls.red</td></tr>

https://www.zhujiwo.cc 部分改成你自己的(不能中文)

继续添加主页天气信息

 <tr><td width="10%"><%:weather%></td><td > <iframe width="900" height="120" frameborder="0" scrolling="no" hspace="0" src="//i.tianqi.com/?c=code&a=getcode&id=22&py=jiangxia&icon=1"></iframe>
          <tr><td width="10%"><%:Urban weather%></td><td > <iframe width="900" height="120" frameborder="0" scrolling="no" hspace="0" src="//i.tianqi.com/?c=code&a=getcode&id=22&py=wuhan&icon=1"></iframe>
         <tr><td width="10%"><%:index%></td><td > <iframe width="400" height="270" frameborder="0" scrolling="no" hspace="0" src="https://i.tianqi.com/?c=code&a=getcode&id=27&py=jiangxia&icon=1"></iframe><iframe width="400" height="270" frameborder="0" scrolling="no" hspace="0" src="https://i.tianqi.com/?c=code&a=getcode&id=27&py=wuhan&icon=1"></iframe>

代码里面的 py= 后面拼音改成你城市的地区拼音

接下来我们给我们添加的代码添加汉化

我们找到这个配置文件 lede/feeds/luci/modules/luci-base/po/zh-cn/base.po

msgid "Compiler author"
msgstr "编译作者"
 
msgid "index"
msgstr "指数"
 
msgid "Urban weather"
msgstr "城市天气"
 
msgid "weather"
msgstr "天气"

4.定制个性SSH登陆欢迎信息

我们修改lede/package/base-files/files/etc/banner文件,可以到这里定制。http://patorjk.com/software/taag/

这里就看你们自己啦

5.修改默认主题

我们修改 lede/feeds/luci/collections/luci/Makefile 文件更改默认主题

lede/feeds/luci/collections/luci-ssl-nginx/Makefilelede/feeds/luci/collections/luci-ssl-openssl/Makefile

这三个文件都要修改默认主题名字,不然后面编译可能会报错。

以上就是编译openwrt进阶教程(定制自己固件篇)

原文转载自主机窝

0

评论 (0)

取消
歌曲封面
0:00