OpenWRT Tips
来自Jack's Lab
(版本间的差异)
(→参考) |
(→编译) |
||
第1行: | 第1行: | ||
== 编译 == | == 编译 == | ||
− | < | + | <source lang=bash> |
$ git clone git://git.openwrt.org/openwrt.git | $ git clone git://git.openwrt.org/openwrt.git | ||
− | |||
$ cd openwrt | $ cd openwrt | ||
− | |||
$ make menuconfig | $ make menuconfig | ||
− | |||
$ make -j4 | $ make -j4 | ||
− | </ | + | </source> |
更多编译输出: | 更多编译输出: |
2021年2月5日 (五) 14:22的版本
目录 |
1 编译
$ git clone git://git.openwrt.org/openwrt.git $ cd openwrt $ make menuconfig $ make -j4
更多编译输出:
$ make V=s
2 增加软件包
软件包索引存储在 feeds 文件夹中 packages.index 中
在 packages/ 目录中增加新软件包的 Makefile 后,运行:
scripts/feeds install -a
3 默认开启无线
打开 package/kernel/mac80211/files/lib/wifi/mac80211.sh,找到:
119 $ht_capab 120 # REMOVE THIS LINE TO ENABLE WIFI: 121 option disabled 1
注掉 'option disable 1' ,重新编译即可
4 默认主机名
打开 package/base-files/files/etc/config/system,修改 hostname 后面的内容即可
1 config system 2 option hostname OpenWrt <------- 主机名 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
5 参考
- http://www.fanyue.info/2014/07/openwrt.html openwrt 内置vpn