Explorar o código

add webserver check

virmaior %!s(int64=3) %!d(string=hai) anos
pai
achega
d51afff1b8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      SD_ROOT/wz_mini/etc/init.d/wz_user.sh

+ 4 - 0
SD_ROOT/wz_mini/etc/init.d/wz_user.sh

@@ -591,6 +591,10 @@ if [[ "$NIGHT_DROP_DISABLE" == "true" ]]; then
 	touch /opt/wz_mini/tmp/.nd
 fi
 
+if [[ "$WEB_SERVER_ENABLED" == "true" ]]; then
+        httpd -p 80 -h /opt/wz_mini/web
+fi
+
 hostname_set
 touch /opt/wz_mini/tmp/.wz_user_firstrun
 pkill -f dumpload #Kill dumpload so it won't waste cpu or ram gathering cores and uploading them when something crashes