From bb9b3808e0c0728cd2457a0649c313bed3dec1d7 Mon Sep 17 00:00:00 2001 From: brindosch Date: Wed, 16 Mar 2016 20:57:06 +0100 Subject: [PATCH] script fixes Former-commit-id: 8865ff41bf1bcdd5b61462310c1e53c2055ad412 --- bin/install_hyperion.sh | 2 +- bin/remove_hyperion.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/install_hyperion.sh b/bin/install_hyperion.sh index 0d3b4f72..5bdc5c2a 100755 --- a/bin/install_hyperion.sh +++ b/bin/install_hyperion.sh @@ -34,7 +34,7 @@ CPU_WETEK=`grep -m1 -c Amlogic /proc/cpuinfo` CPU_X32X64=`uname -m | grep 'x86_32\|i686\|x86_64' | wc -l` #CPU_X32=`uname -m | grep 'x86_32\|i686' | wc -l` # Check that we have a known configuration -if [ $CPU_RPI -ne 1 ] && [ $CPU_IMX6 -ne 1 ] && [ $CPU_WETEK -ne 1 ] && [ $CPU_X64 -ne 1 ] && [ $CPU_X32 -ne 1 ]; then +if [ $CPU_RPI -ne 1 ] && [ $CPU_IMX6 -ne 1 ] && [ $CPU_WETEK -ne 1 ] && [ $CPU_X32X64 -ne 1 ]; then echo '---> Critical Error: CPU information does not match any known releases -> abort' exit 1 fi diff --git a/bin/remove_hyperion.sh b/bin/remove_hyperion.sh index 3b6627e2..1b56b84c 100644 --- a/bin/remove_hyperion.sh +++ b/bin/remove_hyperion.sh @@ -64,7 +64,7 @@ fi #Disabling and delete service files if [ $USE_INITCTL -eq 1 ]; then echo '---> Delete and disable Hyperion initctl script' - rm -v /etc/init/hyperion 2>/dev/null + rm -v /etc/init/hyperion.conf 2>/dev/null initctl reload-configuration elif [ $OS_OPENELEC -eq 1 ]; then # Remove Hyperion from OpenELEC autostart.sh