forked from freifunk-franken/firmware
Adrian Schmutzler
c376435686
There might be scenarios where a user only needs the hood file, but no WebUI (e.g. for 4M devices and node firmware), or only the WebUI, but no hood file (e.g. layer3 firmware). This separates the HTTP server (section) for the hood file into a separate package fff-web-hood. The new package is then only added to the node firmware. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Robert Langhammer <rlanghammer@web.de> Acked-by: Christian Dresel <freifunk@dresel.systems>
16 lines
317 B
Plaintext
16 lines
317 B
Plaintext
uci -q delete uhttpd.main
|
|
|
|
uci batch <<EOF
|
|
set uhttpd.hood=uhttpd
|
|
add_list uhttpd.hood.listen_http='2342'
|
|
set uhttpd.hood.home='/www/hood'
|
|
set uhttpd.hood.rfc1918_filter='1'
|
|
set uhttpd.hood.network_timeout='30'
|
|
set uhttpd.hood.tcp_keepalive='1'
|
|
set uhttpd.hood.config='_'
|
|
EOF
|
|
|
|
uci commit uhttpd
|
|
|
|
exit 0
|