openwrt修改主機名

默認主機名: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上

發佈了32 篇原創文章 · 獲贊 8 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章