1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-09 15:40:45 +02:00

Add web server control script (#1714)

This commit is contained in:
timstanley1985
2021-03-21 19:06:38 +00:00
committed by GitHub
parent a163f4456d
commit 7aa86b916f
6 changed files with 56 additions and 17 deletions

View File

@@ -13,7 +13,7 @@ echo ""
if [ -n "$F_cmd" ]; then
case "$F_cmd" in
get_services)
services="auto-night-detection debug-on-osd ftp_server mdns-responder mqtt-control mqtt-status onvif-srvd recording rtsp sound-on-startup dropbear telegram-bot timelapse"
services="auto-night-detection debug-on-osd ftp_server mdns-responder mqtt-control mqtt-status onvif-srvd recording rtsp sound-on-startup dropbear telegram-bot timelapse lighttpd"
for service in $services ; do
echo "${service}#:#$(test -f /run/${service}.pid && echo 'started' || echo 'stopped')#:#$(test -f /system/sdcard/config/autostart/${service} && echo 'true' || echo 'false')#:#false"
done

View File

@@ -281,6 +281,7 @@ var serviceFriendlyNames = {
"sound-on-startup": "Play Startup Sound",
"telegram-bot": "Telegram Bot",
"timelapse": "Timelapse",
"lighttpd": "Web server",
};
//Function get config