您的位置:首页 > 运维架构

openwrt修改主机名

2015-10-09 16:42 579 查看

默认主机名:OpenWrt



源码中的修改:

[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/),

编译,刷机。

效果图


页面的



ssh上

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: