openwrt修改主机名

来源:互联网 发布:用sql列出同表上下级 编辑:程序博客网 时间:2024/06/06 03:31

默认主机名:OpenWrt



源码中的修改:

[plain] view plaincopy
  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上

0 0