查看: 2572|回复: 0

openwrt修改主机名

[复制链接]

该用户从未签到

发表于 2017-7-3 16:51:47 | 显示全部楼层 |阅读模式
分享到:
openwrt修改主机名
默认主机名:OpenWrt
N02PUKYI147YKL`K112ZFMX.png

源码中的修改:
[plain] view plaincopy

  • package/base-files/files/etc/config/system  
  • [openwrt@root config]$ vim system   
  •   1 config system  
  •   2     option hostname Jack  
  •   3     option timezone UTC  
  •   4   
  •   5 config timeserver ntp  
  •   6     list server 0.openwrt.pool.ntp.org  
  •   7     list server 1.openwrt.pool.ntp.org  
  •   8     list server 2.openwrt.pool.ntp.org  
  •   9     list server 3.openwrt.pool.ntp.org  
  • 10     option enable_server 0  

然后删除原来生成的文件系统(staging_dir/target-i386_uClibc-0.9.33.2/root-x86/),
编译,刷机。

效果图
页面的
12Q0EWYYJTMGQ74~(Z]_4JT.png

ssh
@)`H}[GF1Z$M)K@~EC56($K.png

回复

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /2 下一条

手机版|小黑屋|与非网

GMT+8, 2024-4-26 03:10 , Processed in 0.120378 second(s), 16 queries , MemCache On.

ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

苏公网安备 32059002001037号

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.