uhttpd: do not configure TLS parameters if libustream-ssl is not present
[openwrt/staging/luka.git] / package / network / services / uhttpd / files / uhttpd.init
index 608aa9d36b4908190510d1cb4bcd19cbc6e1992d..2e9460960614b74d027fede1d7994f7c3beb556a 100755 (executable)
@@ -109,7 +109,7 @@ start_instance()
        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
                }