From 1059f5f79b07813bfeea0b6e896f02bfc7cfba3c Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 19 Nov 2022 11:22:58 +0100 Subject: [PATCH] - init-scripts: activate blue led --- package/init-scripts/files/proc.init | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package/init-scripts/files/proc.init b/package/init-scripts/files/proc.init index 50dff74b..e44fda6e 100644 --- a/package/init-scripts/files/proc.init +++ b/package/init-scripts/files/proc.init @@ -1,25 +1,25 @@ #!/bin/sh +. /etc/init.d/functions . /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) if [ -e /proc/cpu/alignment ]; then echo -n "3" > /proc/cpu/alignment fi - case $model in + case "$(get_boxmodel)" in hd60|hd61) if [ -e /proc/stb/power/powerled2 ]; then echo off > /proc/stb/power/powerled2 fi ;; + e4hd|protek4k) + if [ -e /proc/stb/power/standbyled ]; then + echo on > /proc/stb/power/standbyled + fi + ;; esac ;; *)