From b82ff2805571f3983b8c1647b7b9104e678189b2 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 15 Nov 2020 22:20:18 +0100 Subject: [PATCH] - init-scripts/proc: update for hd6x --- skel-root/general/scripts/proc.init | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/skel-root/general/scripts/proc.init b/skel-root/general/scripts/proc.init index 2a91cdb7..50dff74b 100644 --- a/skel-root/general/scripts/proc.init +++ b/skel-root/general/scripts/proc.init @@ -2,10 +2,25 @@ . /etc/init.d/globals +if [ -e /proc/stb/info/model ]; then + model=$(cat /proc/stb/info/model) +elif [ -e /proc/stb/info/vumodel ]; then + model=$(cat /proc/stb/info/vumodel) +fi + case $1 in start) - test -e /proc/cpu/alignment && \ + if [ -e /proc/cpu/alignment ]; then echo -n "3" > /proc/cpu/alignment + fi + + case $model in + hd60|hd61) + if [ -e /proc/stb/power/powerled2 ]; then + echo off > /proc/stb/power/powerled2 + fi + ;; + esac ;; *) echo "[$BASENAME] Usage: $0 {start}"