1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Set uhttpd config only at first boot and update fstab at update

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-12-21 09:53:37 +01:00
parent 5bcc428e64
commit de776701e8
2 changed files with 10 additions and 6 deletions

View file

@ -1,8 +1,10 @@
#!/bin/sh
uci -q batch <<-EOF >/dev/null
set uhttpd.main.redirect_https=0
set uhttpd.main.script_timeout=240
set uhttpd.main.network_timeout=240
set uhttpd.main.http_keepalive=0
EOF
if [ "$(uci -q get openmptcprouter.settings.version)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set uhttpd.main.redirect_https=0
set uhttpd.main.script_timeout=240
set uhttpd.main.network_timeout=240
set uhttpd.main.http_keepalive=0
EOF
fi
exit 0