From 46a3afc6bcb4d14c391a0b6431c1a6c8ec0d8663 Mon Sep 17 00:00:00 2001 From: "Igor Zalatov (from Citadel PC)" Date: Wed, 21 Dec 2022 11:35:03 +0300 Subject: [PATCH] Add Huishi project for repairing many devices --- .../configs/hi3516ev200_lite_huishi_defconfig | 1 + .../general/overlay/etc/httpd.conf | 10 ++++ .../general/overlay/etc/majestic.yaml | 54 +++++++++++++++++++ .../general/overlay/etc/shadow | 9 ++++ .../general/overlay/var/www/index.html | 13 +++++ 5 files changed, 87 insertions(+) create mode 120000 projects/hi3516ev200_lite_huishi/br-ext-chip-hisilicon/configs/hi3516ev200_lite_huishi_defconfig create mode 100644 projects/hi3516ev200_lite_huishi/general/overlay/etc/httpd.conf create mode 100644 projects/hi3516ev200_lite_huishi/general/overlay/etc/majestic.yaml create mode 100644 projects/hi3516ev200_lite_huishi/general/overlay/etc/shadow create mode 100644 projects/hi3516ev200_lite_huishi/general/overlay/var/www/index.html diff --git a/projects/hi3516ev200_lite_huishi/br-ext-chip-hisilicon/configs/hi3516ev200_lite_huishi_defconfig b/projects/hi3516ev200_lite_huishi/br-ext-chip-hisilicon/configs/hi3516ev200_lite_huishi_defconfig new file mode 120000 index 0000000..4f16947 --- /dev/null +++ b/projects/hi3516ev200_lite_huishi/br-ext-chip-hisilicon/configs/hi3516ev200_lite_huishi_defconfig @@ -0,0 +1 @@ +hi3516ev200_lite_defconfig \ No newline at end of file diff --git a/projects/hi3516ev200_lite_huishi/general/overlay/etc/httpd.conf b/projects/hi3516ev200_lite_huishi/general/overlay/etc/httpd.conf new file mode 100644 index 0000000..6460806 --- /dev/null +++ b/projects/hi3516ev200_lite_huishi/general/overlay/etc/httpd.conf @@ -0,0 +1,10 @@ +# +H:/var/www +A:127.0.0.1 +A:* +D:8.8.8.8/32 +E401:401.html +/cgi-bin:admin:123456 +# +P:/image.jpg:http://127.0.0.1:80/image.jpg +# diff --git a/projects/hi3516ev200_lite_huishi/general/overlay/etc/majestic.yaml b/projects/hi3516ev200_lite_huishi/general/overlay/etc/majestic.yaml new file mode 100644 index 0000000..b89f09d --- /dev/null +++ b/projects/hi3516ev200_lite_huishi/general/overlay/etc/majestic.yaml @@ -0,0 +1,54 @@ +system: + webAdmin: enabled + buffer: 1024 + staticDir: /var/www/majestic +image: + mirror: false + flip: false + rotate: none + contrast: 50 + hue: 50 + saturation: 50 + luminance: 50 +osd: + enabled: false + template: "%a %e %B %Y %H:%M:%S %Z" +nightMode: + enabled: true + irCutPin1: 12 + irCutPin2: 14 +records: + enabled: false + path: /mnt/mmc/%Y/%m/%d/%H.mp4 + maxUsage: 95 +video0: + enabled: true + codec: h264 +video1: + enabled: false +jpeg: + enabled: true +mjpeg: + size: 640x360 + fps: 5 + bitrate: 1024 +audio: + enabled: false + volume: auto + srate: 8000 +rtsp: + enabled: true + port: 554 +hls: + enabled: false +youtube: + enabled: false +motionDetect: + enabled: false + visualize: true + debug: true +ipeye: + enabled: false +watchdog: + enabled: true + timeout: 10 diff --git a/projects/hi3516ev200_lite_huishi/general/overlay/etc/shadow b/projects/hi3516ev200_lite_huishi/general/overlay/etc/shadow new file mode 100644 index 0000000..ef77805 --- /dev/null +++ b/projects/hi3516ev200_lite_huishi/general/overlay/etc/shadow @@ -0,0 +1,9 @@ +root:$1$dNC7QRcv$Sn924l6Q1YrJjFIvVk8sD/:19347:::::: +daemon:*::::::: +bin:*::::::: +sys:*::::::: +sync:*::::::: +mail:*::::::: +www-data:*::::::: +operator:*::::::: +nobody:*::::::: diff --git a/projects/hi3516ev200_lite_huishi/general/overlay/var/www/index.html b/projects/hi3516ev200_lite_huishi/general/overlay/var/www/index.html new file mode 100644 index 0000000..5db78b5 --- /dev/null +++ b/projects/hi3516ev200_lite_huishi/general/overlay/var/www/index.html @@ -0,0 +1,13 @@ + + + + + + +Please open web interface on port 85. + +