Author: jow
Date: 2014-08-25 14:39:34 +0200 (Mon, 25 Aug 2014)
New Revision: 42284

Modified:
   trunk/package/network/services/uhttpd/Makefile
   trunk/package/network/services/uhttpd/files/uhttpd.init
Log:
uhttpd: do not configure TLS parameters if libustream-ssl is not present

A quite frequent problem after sysupgrading from an older, SSL enabled build
is that ustream-ssl is not installed so uhttpd fails to come up again due to
https listening directives in the preserved configuration.

Skip key/cert and ssl listen options when libustream-ssl.so is not present.

Signed-off-by: Jo-Philipp Wich <[email protected]>

Modified: trunk/package/network/services/uhttpd/Makefile
===================================================================
--- trunk/package/network/services/uhttpd/Makefile      2014-08-25 12:38:26 UTC 
(rev 42283)
+++ trunk/package/network/services/uhttpd/Makefile      2014-08-25 12:39:34 UTC 
(rev 42284)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2010-2013 Jo-Philipp Wich <[email protected]>
+# Copyright (C) 2010-2014 Jo-Philipp Wich <[email protected]>
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=uhttpd
-PKG_VERSION:=2014-06-11
+PKG_VERSION:=2014-08-25
 PKG_RELEASE=$(PKG_SOURCE_VERSION)
 
 PKG_SOURCE_PROTO:=git

Modified: trunk/package/network/services/uhttpd/files/uhttpd.init
===================================================================
--- trunk/package/network/services/uhttpd/files/uhttpd.init     2014-08-25 
12:38:26 UTC (rev 42283)
+++ trunk/package/network/services/uhttpd/files/uhttpd.init     2014-08-25 
12:39:34 UTC (rev 42284)
@@ -109,7 +109,7 @@
        config_get UHTTPD_KEY  "$cfg" key  /etc/uhttpd.key
        config_get UHTTPD_CERT "$cfg" cert /etc/uhttpd.crt
 
-       [ -n "$https" ] && {
+       [ -f /lib/libustream-ssl.so ] && [ -n "$https" ] && {
                [ -f "$UHTTPD_CERT" -a -f "$UHTTPD_KEY" ] || {
                        config_foreach generate_keys cert
                }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to