Update README

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2018-03-11 12:38:36 +08:00
parent 4fbac91d35
commit cefd7505c0
4 changed files with 36 additions and 34 deletions

13
BUILDOPENWRT.md 100755
View File

@ -0,0 +1,13 @@
Update feeds
./scripts/feeds update -a
./scripts/feeds install -a
Select libuhttpd in menuconfig and compile new image.
Libraries --->
Networking --->
<*> libuhttpd-mbedtls.................................... libuhttpd (mbedtls)
< > libuhttpd-nossl....................................... libuhttpd (NO SSL)
< > libuhttpd-openssl.................................... libuhttpd (openssl)
< > libuhttpd-wolfssl.................................... libuhttpd (wolfssl)

13
BUILDOPENWRT_ZH.md 100755
View File

@ -0,0 +1,13 @@
更新feeds
./scripts/feeds update -a
./scripts/feeds install -a
在menuconfig选中libuhttpd然后重新编译固件。
Libraries --->
Networking --->
<*> libuhttpd-mbedtls.................................... libuhttpd (mbedtls)
< > libuhttpd-nossl....................................... libuhttpd (NO SSL)
< > libuhttpd-openssl.................................... libuhttpd (openssl)
< > libuhttpd-wolfssl.................................... libuhttpd (wolfssl)

View File

@ -67,25 +67,13 @@ Run
Then use the command curl or browser to test
$ curl -k 'https://127.0.0.1:8000/hello?name=test' -d '{"name":"libuhttpd"}' -v
# How to use on OpenWRT
add new feed into "feeds.conf.default":
src-git libuhttpd https://github.com/zhaojh329/libuhttpd-feed.git
# Install on OpenWrt
opkg update
opkg list | grep libuhttpd
opkg install libuhttpd-nossl
Install libuhttpd packages:
./scripts/feeds update libuhttpd
./scripts/feeds install -a -p libuhttpd
Select package libuhttpd in menuconfig and compile new image.
Libraries --->
Networking --->
<*> libuhttpd-mbedtls.................................... libuhttpd (mbedtls)
< > libuhttpd-nossl....................................... libuhttpd (NO SSL)
< > libuhttpd-openssl.................................... libuhttpd (openssl)
< > libuhttpd-wolfssl.................................... libuhttpd (wolfssl)
If the install command fails, you can [compile it yourself](/BUILDOPENWRT.md).
# Example
```

View File

@ -67,24 +67,12 @@
$ curl -k 'https://127.0.0.1:8000/hello?name=test' -d '{"name":"libuhttpd"}' -v
# 如何在OpenWRT中使用
Add new feed into "feeds.conf.default":
# 安装到OpenWRT
opkg update
opkg list | grep libuhttpd
opkg install libuhttpd-nossl
src-git libuhttpd https://github.com/zhaojh329/libuhttpd-feed.git
Install libuhttpd packages:
./scripts/feeds update libuhttpd
./scripts/feeds install -a -p libuhttpd
Select package libuhttpd in menuconfig and compile new image.
Libraries --->
Networking --->
<*> libuhttpd-mbedtls.................................... libuhttpd (mbedtls)
< > libuhttpd-nossl....................................... libuhttpd (NO SSL)
< > libuhttpd-openssl.................................... libuhttpd (openssl)
< > libuhttpd-wolfssl.................................... libuhttpd (wolfssl)
如果安装失败,你可以[自己编译](/BUILDOPENWRT_ZH.md)。
# 示例程序
```