Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit f594935

Browse files
committed
Update update_hyperion.sh
Fixed incorrect openelec variable reference
1 parent bedd894 commit f594935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy/update_hyperion.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ CPU_WETEK=`cat /proc/cpuinfo | grep Amlogic | wc -l`
1515
CPU_X64=`uname -m | grep x86_64 | wc -l`
1616
CPU_X32=`uname -m | grep x86_32 | wc -l`
1717
# Check that we have a known configuration
18-
if [ $CPU_RPI -ne 1 ] & [ $CPU_IMX6 -ne 1 ] & [ $CPU_WETEK -ne 1 ] & [ $CPU_X64 -ne 1 ] & [ $CPU_X32 -ne 1 ]; then
18+
if [[ $CPU_RPI -ne 1 && $CPU_IMX6 -ne 1 && $CPU_WETEK -ne 1 && $CPU_X64 -ne 1 && $CPU_X32 -ne 1 ]]; then
1919
echo 'CPU information does not match any known releases'
2020
exit
2121
fi
@@ -96,7 +96,7 @@ elif [ $USE_SERVICE -eq 1 ]; then
9696
ln -fs /opt/hyperion/init.d/hyperion.init.sh /etc/init.d/hyperion
9797
chmod +x /etc/init.d/hyperion
9898
update-rc.d hyperion defaults 98 02
99-
elif [ $IS_OPENELEC -eq 1 ]; then
99+
elif [ $OS_OPENELEC -eq 1 ]; then
100100
# only add to start script if hyperion is not present yet
101101
if [ `cat /storage/.config/autostart.sh 2>/dev/null | grep hyperiond | wc -l` -eq 0 ]; then
102102
echo 'Adding Hyperion to autostart script'

0 commit comments

Comments
 (0)