现在的位置: 首页 > 综合 > 正文

openwrt修改主机名

2017年09月09日 ⁄ 综合 ⁄ 共 859字 ⁄ 字号 评论关闭

默认主机名:OpenWrt

源码中的修改:

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

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

编译,刷机。

效果图


页面的

ssh上

抱歉!评论已关闭.