From daf0bb5e8e72fa0a1dd09bf1e1bf77d43a8c6ac9 Mon Sep 17 00:00:00 2001 From: "Signor Pellegrino (from Citadel PC)" Date: Mon, 1 Apr 2024 23:19:46 +0300 Subject: [PATCH] Update T21 HDC-51 --- .../t21_lite_chinamobile-hdc-51-a5-v12_defconfig | 1 + .../general/overlay/etc/init.d/S90autonight | 14 ++++++++++++++ .../overlay/usr/share/openipc/customizer.sh | 6 ++---- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100755 devices/t21_lite_chinamobile-hdc-51-a5-v12/general/overlay/etc/init.d/S90autonight diff --git a/devices/t21_lite_chinamobile-hdc-51-a5-v12/br-ext-chip-ingenic/configs/t21_lite_chinamobile-hdc-51-a5-v12_defconfig b/devices/t21_lite_chinamobile-hdc-51-a5-v12/br-ext-chip-ingenic/configs/t21_lite_chinamobile-hdc-51-a5-v12_defconfig index d83b1b1..758654e 100644 --- a/devices/t21_lite_chinamobile-hdc-51-a5-v12/br-ext-chip-ingenic/configs/t21_lite_chinamobile-hdc-51-a5-v12_defconfig +++ b/devices/t21_lite_chinamobile-hdc-51-a5-v12/br-ext-chip-ingenic/configs/t21_lite_chinamobile-hdc-51-a5-v12_defconfig @@ -92,6 +92,7 @@ BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y BR2_PACKAGE_VTUND_OPENIPC=y BR2_PACKAGE_YAML_CLI=y BR2_PACKAGE_QUIRC_OPENIPC=y +BR2_PACKAGE_AUTONIGHT=y # WiFi BR2_PACKAGE_WIRELESS_TOOLS=y diff --git a/devices/t21_lite_chinamobile-hdc-51-a5-v12/general/overlay/etc/init.d/S90autonight b/devices/t21_lite_chinamobile-hdc-51-a5-v12/general/overlay/etc/init.d/S90autonight new file mode 100755 index 0000000..4ac91f7 --- /dev/null +++ b/devices/t21_lite_chinamobile-hdc-51-a5-v12/general/overlay/etc/init.d/S90autonight @@ -0,0 +1,14 @@ +#!/bin/sh + +case "$1" in + start) + autonight -d 3 + ;; + stop) + kill -9 $(pidof autonight) + ;; + *) + echo "Usage: $0 {start|stop}" + exit 1 + ;; +esac diff --git a/devices/t21_lite_chinamobile-hdc-51-a5-v12/general/overlay/usr/share/openipc/customizer.sh b/devices/t21_lite_chinamobile-hdc-51-a5-v12/general/overlay/usr/share/openipc/customizer.sh index 0be4d1a..372ca33 100644 --- a/devices/t21_lite_chinamobile-hdc-51-a5-v12/general/overlay/usr/share/openipc/customizer.sh +++ b/devices/t21_lite_chinamobile-hdc-51-a5-v12/general/overlay/usr/share/openipc/customizer.sh @@ -10,12 +10,10 @@ fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/t # # Set custom majestic settings # -cli -s .system.webAdmin disabled -cli -s .system.staticDir /var/www/majestic -cli -s .isp.blkCnt 1 +cli -s .isp.blkCnt 2 cli -s .nightMode.irCutPin1 50 cli -s .nightMode.irCutSingleInvert true -#cli -s .nightMode.backlightPin ?? +cli -s .nightMode.lightMonitor false cli -s .video0.codec h264 cli -s .audio.enabled true cli -s .audio.volume 50