uhttpd: add enable instance option
[openwrt/.git] / package / network / services / uhttpd / files / uhttpd.init
index 6322473b97001eb75b236db0e613ef137a83698b..869f79bea20f62ad46b15c256144b9f98fa816eb 100755 (executable)
@@ -98,6 +98,10 @@ start_instance()
        local cfg="$1"
        local realm="$(uci_get system.@system[0].hostname)"
        local listen http https interpreter indexes path handler httpdconf haveauth
+       local enabled
+
+       config_get_bool enabled "$cfg" 'enabled' 1
+       [ $enabled -gt 0 ] || return
 
        procd_open_instance
        procd_set_param respawn