From cefd7505c074128a7a5cc1888cd4a2a46cb7fbcf Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Sun, 11 Mar 2018 12:38:36 +0800 Subject: [PATCH] Update README Signed-off-by: Jianhui Zhao --- BUILDOPENWRT.md | 13 +++++++++++++ BUILDOPENWRT_ZH.md | 13 +++++++++++++ README.md | 22 +++++----------------- README_ZH.md | 22 +++++----------------- 4 files changed, 36 insertions(+), 34 deletions(-) create mode 100755 BUILDOPENWRT.md create mode 100755 BUILDOPENWRT_ZH.md diff --git a/BUILDOPENWRT.md b/BUILDOPENWRT.md new file mode 100755 index 0000000..0152dd3 --- /dev/null +++ b/BUILDOPENWRT.md @@ -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) diff --git a/BUILDOPENWRT_ZH.md b/BUILDOPENWRT_ZH.md new file mode 100755 index 0000000..3f048b2 --- /dev/null +++ b/BUILDOPENWRT_ZH.md @@ -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) diff --git a/README.md b/README.md index 0da6f1f..b425829 100755 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/README_ZH.md b/README_ZH.md index ab2b2aa..7a5aa0b 100755 --- a/README_ZH.md +++ b/README_ZH.md @@ -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)。 # 示例程序 ```