Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhaitian committed Oct 26, 2024
1 parent 90ea9c2 commit 4da4019
Show file tree
Hide file tree
Showing 19 changed files with 783 additions and 20 deletions.
75 changes: 73 additions & 2 deletions Update-CHI.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
clear

UPDATE_DATE="09292024"
UPDATE_DATE="10252024"
LOG_FILE="/home/ark/update$UPDATE_DATE.log"
UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE"

Expand Down Expand Up @@ -6625,7 +6625,7 @@ if [ ! -f "/home/ark/.config/.update09272024" ]; then

fi

if [ ! -f "$UPDATE_DONE" ]; then
if [ ! -f "/home/ark/.config/.update09292024" ]; then

printf "\nFix SDL 2.30.7 builtin joystick detection issue\n" | tee -a "$LOG_FILE"
sudo rm -rf /dev/shm/*
Expand Down Expand Up @@ -6680,6 +6680,77 @@ if [ ! -f "$UPDATE_DONE" ]; then
printf "\nUpdate boot text to reflect current version of ArkOS\n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 2.0 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update09292024"

fi

if [ ! -f "$UPDATE_DONE" ]; then

printf "\nUpdate emulationstation to exclude menu.scummvm from scraping\nUpdate DS4 Controller config for retroarches\nUpdate Hypseus-Singe to 2.11.3\n" | tee -a "$LOG_FILE"
sudo rm -rf /dev/shm/*
sudo wget -t 3 -T 60 --no-check-certificate "$LOCATION"/10252024/arkosupdate10252024.zip -O /dev/shm/arkosupdate10252024.zip -a "$LOG_FILE" || sudo rm -f /dev/shm/arkosupdate10252024.zip | tee -a "$LOG_FILE"
if [ -f "/dev/shm/arkosupdate10252024.zip" ]; then
sudo unzip -X -o /dev/shm/arkosupdate10252024.zip -d / | tee -a "$LOG_FILE"
sudo rm -fv /dev/shm/arkosupdate10252024.zip | tee -a "$LOG_FILE"
else
printf "\nThe update couldn't complete because the package did not download correctly.\nPlease retry the update again." | tee -a "$LOG_FILE"
sudo rm -fv /dev/shm/arkosupdate10252024.z* | tee -a "$LOG_FILE"
sleep 3
echo $c_brightness > /sys/class/backlight/backlight/brightness
exit 1
fi

printf "\nCopy correct Hypseus-Singe for device\n" | tee -a "$LOG_FILE"
if [ -f "/boot/rk3566.dtb" ] || [ -f "/boot/rk3566-OC.dtb" ]; then
rm -fv /opt/hypseus-singe/hypseus-singe.rk3326 | tee -a "$LOG_FILE"
else
mv -fv /opt/hypseus-singe/hypseus-singe.rk3326 /opt/hypseus-singe/hypseus-singe | tee -a "$LOG_FILE"
fi

# printf "\nCopy correct libretro mednafen psx core depending on device\n" | tee -a "$LOG_FILE"
# if [ ! -f "/boot/rk3566.dtb" ] && [ ! -f "/boot/rk3566-OC.dtb" ]; then
# mv -fv /home/ark/.config/retroarch/cores/mednafen_psx_hw_libretro.so.rk3326 /home/ark/.config/retroarch/cores/mednafen_psx_hw_libretro.so | tee -a "$LOG_FILE"
# else
# rm -fv /home/ark/.config/retroarch/cores/mednafen_psx_hw_libretro.so.rk3326 | tee -a "$LOG_FILE"
# fi

# printf "\nAdd mednafen (beetle) psx core as additional core for PSX\n" | tee -a "$LOG_FILE"
# sed -i '/<core>duckstation<\/core>/s//<core>mednafen_psx_hw<\/core>\n\t <core>duckstation<\/core>/' /etc/emulationstation/es_systems.cfg

# printf "\nUpdate openborkeydemon.py\n" | tee -a "$LOG_FILE"
# sudo sed -i '/pkill OpenBOR/s//sudo kill -9 \$(pgrep -f OpenBOR)/g' /usr/local/bin/openborkeydemon.py

printf "\nCopy correct emulationstation depending on device\n" | tee -a "$LOG_FILE"
if [ -f "/boot/rk3326-r33s-linux.dtb" ] || [ -f "/boot/rk3326-r35s-linux.dtb" ] || [ -f "/boot/rk3326-r36s-linux.dtb" ] || [ -f "/boot/rk3326-rg351v-linux.dtb" ] || [ -f "/boot/rk3326-rg351mp-linux.dtb" ] || [ -f "/boot/rk3326-gameforce-linux.dtb" ]; then
sudo mv -fv /home/ark/emulationstation.351v /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
sudo rm -fv /home/ark/emulationstation.* | tee -a "$LOG_FILE"
sudo chmod -v 777 /usr/bin/emulationstation/emulationstation* | tee -a "$LOG_FILE"
elif [ -f "/boot/rk3326-odroidgo2-linux.dtb" ] || [ -f "/boot/rk3326-odroidgo2-linux-v11.dtb" ] || [ -f "/boot/rk3326-odroidgo3-linux.dtb" ]; then
test=$(stat -c %s "/usr/bin/emulationstation/emulationstation")
if [ "$test" = "3416928" ]; then
sudo cp -fv /home/ark/emulationstation.351v /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
elif [ -f "/home/ark/.config/.DEVICE" ]; then
sudo cp -fv /home/ark/emulationstation.rgb10max /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
else
sudo cp -fv /home/ark/emulationstation.header /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
fi
if [ -f "/home/ark/.config/.DEVICE" ]; then
sudo cp -fv /home/ark/emulationstation.rgb10max /usr/bin/emulationstation/emulationstation.header | tee -a "$LOG_FILE"
else
sudo cp -fv /home/ark/emulationstation.header /usr/bin/emulationstation/emulationstation.header | tee -a "$LOG_FILE"
fi
sudo cp -fv /home/ark/emulationstation.351v /usr/bin/emulationstation/emulationstation.fullscreen | tee -a "$LOG_FILE"
sudo rm -fv /home/ark/emulationstation.* | tee -a "$LOG_FILE"
sudo chmod -v 777 /usr/bin/emulationstation/emulationstation* | tee -a "$LOG_FILE"
elif [ -f "/boot/rk3566.dtb" ] || [ -f "/boot/rk3566-OC.dtb" ]; then
sudo mv -fv /home/ark/emulationstation.503 /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
sudo rm -fv /home/ark/emulationstation.* | tee -a "$LOG_FILE"
sudo chmod -v 777 /usr/bin/emulationstation/emulationstation* | tee -a "$LOG_FILE"
fi

printf "\nUpdate boot text to reflect current version of ArkOS\n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 2.0 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth

touch "$UPDATE_DONE"
rm -v -- "$0" | tee -a "$LOG_FILE"
printf "\033c" >> /dev/tty1
Expand Down
75 changes: 73 additions & 2 deletions Update-RG351MP.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
clear
UPDATE_DATE="09292024"
UPDATE_DATE="10252024"
LOG_FILE="/home/ark/update$UPDATE_DATE.log"
UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE"

Expand Down Expand Up @@ -6663,7 +6663,7 @@ if [ ! -f "/home/ark/.config/.update09272024" ]; then

fi

if [ ! -f "$UPDATE_DONE" ]; then
if [ ! -f "/home/ark/.config/.update09292024" ]; then

printf "\nFix SDL 2.30.7 builtin joystick detection issue\n" | tee -a "$LOG_FILE"
sudo rm -rf /dev/shm/*
Expand Down Expand Up @@ -6712,6 +6712,77 @@ if [ ! -f "$UPDATE_DONE" ]; then
printf "\nUpdate boot text to reflect current version of ArkOS\n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 2.0 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update09292024"

fi

if [ ! -f "$UPDATE_DONE" ]; then

printf "\nUpdate emulationstation to exclude menu.scummvm from scraping\nUpdate DS4 Controller config for retroarches\nUpdate Hypseus-Singe to 2.11.3\n" | tee -a "$LOG_FILE"
sudo rm -rf /dev/shm/*
sudo wget -t 3 -T 60 --no-check-certificate "$LOCATION"/10252024/arkosupdate10252024.zip -O /dev/shm/arkosupdate10252024.zip -a "$LOG_FILE" || sudo rm -f /dev/shm/arkosupdate10252024.zip | tee -a "$LOG_FILE"
if [ -f "/dev/shm/arkosupdate10252024.zip" ]; then
sudo unzip -X -o /dev/shm/arkosupdate10252024.zip -d / | tee -a "$LOG_FILE"
sudo rm -fv /dev/shm/arkosupdate10252024.zip | tee -a "$LOG_FILE"
else
printf "\nThe update couldn't complete because the package did not download correctly.\nPlease retry the update again." | tee -a "$LOG_FILE"
sudo rm -fv /dev/shm/arkosupdate10252024.z* | tee -a "$LOG_FILE"
sleep 3
echo $c_brightness > /sys/class/backlight/backlight/brightness
exit 1
fi

printf "\nCopy correct Hypseus-Singe for device\n" | tee -a "$LOG_FILE"
if [ -f "/boot/rk3566.dtb" ] || [ -f "/boot/rk3566-OC.dtb" ]; then
rm -fv /opt/hypseus-singe/hypseus-singe.rk3326 | tee -a "$LOG_FILE"
else
mv -fv /opt/hypseus-singe/hypseus-singe.rk3326 /opt/hypseus-singe/hypseus-singe | tee -a "$LOG_FILE"
fi

# printf "\nCopy correct libretro mednafen psx core depending on device\n" | tee -a "$LOG_FILE"
# if [ ! -f "/boot/rk3566.dtb" ] && [ ! -f "/boot/rk3566-OC.dtb" ]; then
# mv -fv /home/ark/.config/retroarch/cores/mednafen_psx_hw_libretro.so.rk3326 /home/ark/.config/retroarch/cores/mednafen_psx_hw_libretro.so | tee -a "$LOG_FILE"
# else
# rm -fv /home/ark/.config/retroarch/cores/mednafen_psx_hw_libretro.so.rk3326 | tee -a "$LOG_FILE"
# fi

# printf "\nAdd mednafen (beetle) psx core as additional core for PSX\n" | tee -a "$LOG_FILE"
# sed -i '/<core>duckstation<\/core>/s//<core>mednafen_psx_hw<\/core>\n\t <core>duckstation<\/core>/' /etc/emulationstation/es_systems.cfg

# printf "\nUpdate openborkeydemon.py\n" | tee -a "$LOG_FILE"
# sudo sed -i '/pkill OpenBOR/s//sudo kill -9 \$(pgrep -f OpenBOR)/g' /usr/local/bin/openborkeydemon.py

printf "\nCopy correct emulationstation depending on device\n" | tee -a "$LOG_FILE"
if [ -f "/boot/rk3326-r33s-linux.dtb" ] || [ -f "/boot/rk3326-r35s-linux.dtb" ] || [ -f "/boot/rk3326-r36s-linux.dtb" ] || [ -f "/boot/rk3326-rg351v-linux.dtb" ] || [ -f "/boot/rk3326-rg351mp-linux.dtb" ] || [ -f "/boot/rk3326-gameforce-linux.dtb" ]; then
sudo mv -fv /home/ark/emulationstation.351v /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
sudo rm -fv /home/ark/emulationstation.* | tee -a "$LOG_FILE"
sudo chmod -v 777 /usr/bin/emulationstation/emulationstation* | tee -a "$LOG_FILE"
elif [ -f "/boot/rk3326-odroidgo2-linux.dtb" ] || [ -f "/boot/rk3326-odroidgo2-linux-v11.dtb" ] || [ -f "/boot/rk3326-odroidgo3-linux.dtb" ]; then
test=$(stat -c %s "/usr/bin/emulationstation/emulationstation")
if [ "$test" = "3416928" ]; then
sudo cp -fv /home/ark/emulationstation.351v /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
elif [ -f "/home/ark/.config/.DEVICE" ]; then
sudo cp -fv /home/ark/emulationstation.rgb10max /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
else
sudo cp -fv /home/ark/emulationstation.header /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
fi
if [ -f "/home/ark/.config/.DEVICE" ]; then
sudo cp -fv /home/ark/emulationstation.rgb10max /usr/bin/emulationstation/emulationstation.header | tee -a "$LOG_FILE"
else
sudo cp -fv /home/ark/emulationstation.header /usr/bin/emulationstation/emulationstation.header | tee -a "$LOG_FILE"
fi
sudo cp -fv /home/ark/emulationstation.351v /usr/bin/emulationstation/emulationstation.fullscreen | tee -a "$LOG_FILE"
sudo rm -fv /home/ark/emulationstation.* | tee -a "$LOG_FILE"
sudo chmod -v 777 /usr/bin/emulationstation/emulationstation* | tee -a "$LOG_FILE"
elif [ -f "/boot/rk3566.dtb" ] || [ -f "/boot/rk3566-OC.dtb" ]; then
sudo mv -fv /home/ark/emulationstation.503 /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
sudo rm -fv /home/ark/emulationstation.* | tee -a "$LOG_FILE"
sudo chmod -v 777 /usr/bin/emulationstation/emulationstation* | tee -a "$LOG_FILE"
fi

printf "\nUpdate boot text to reflect current version of ArkOS\n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 2.0 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth

touch "$UPDATE_DONE"
rm -v -- "$0" | tee -a "$LOG_FILE"
printf "\033c" >> /dev/tty1
Expand Down
75 changes: 73 additions & 2 deletions Update-RG351V.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
clear

UPDATE_DATE="09292024"
UPDATE_DATE="10252024"
LOG_FILE="/home/ark/update$UPDATE_DATE.log"
UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE"

Expand Down Expand Up @@ -7409,7 +7409,7 @@ if [ ! -f "/home/ark/.config/.update09272024" ]; then

fi

if [ ! -f "$UPDATE_DONE" ]; then
if [ ! -f "/home/ark/.config/.update09292024" ]; then

printf "\nFix SDL 2.30.7 builtin joystick detection issue\n" | tee -a "$LOG_FILE"
sudo rm -rf /dev/shm/*
Expand Down Expand Up @@ -7458,6 +7458,77 @@ if [ ! -f "$UPDATE_DONE" ]; then
printf "\nUpdate boot text to reflect current version of ArkOS\n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 2.0 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update09292024"

fi

if [ ! -f "$UPDATE_DONE" ]; then

printf "\nUpdate emulationstation to exclude menu.scummvm from scraping\nUpdate DS4 Controller config for retroarches\nUpdate Hypseus-Singe to 2.11.3\n" | tee -a "$LOG_FILE"
sudo rm -rf /dev/shm/*
sudo wget -t 3 -T 60 --no-check-certificate "$LOCATION"/10252024/arkosupdate10252024.zip -O /dev/shm/arkosupdate10252024.zip -a "$LOG_FILE" || sudo rm -f /dev/shm/arkosupdate10252024.zip | tee -a "$LOG_FILE"
if [ -f "/dev/shm/arkosupdate10252024.zip" ]; then
sudo unzip -X -o /dev/shm/arkosupdate10252024.zip -d / | tee -a "$LOG_FILE"
sudo rm -fv /dev/shm/arkosupdate10252024.zip | tee -a "$LOG_FILE"
else
printf "\nThe update couldn't complete because the package did not download correctly.\nPlease retry the update again." | tee -a "$LOG_FILE"
sudo rm -fv /dev/shm/arkosupdate10252024.z* | tee -a "$LOG_FILE"
sleep 3
echo $c_brightness > /sys/class/backlight/backlight/brightness
exit 1
fi

printf "\nCopy correct Hypseus-Singe for device\n" | tee -a "$LOG_FILE"
if [ -f "/boot/rk3566.dtb" ] || [ -f "/boot/rk3566-OC.dtb" ]; then
rm -fv /opt/hypseus-singe/hypseus-singe.rk3326 | tee -a "$LOG_FILE"
else
mv -fv /opt/hypseus-singe/hypseus-singe.rk3326 /opt/hypseus-singe/hypseus-singe | tee -a "$LOG_FILE"
fi

# printf "\nCopy correct libretro mednafen psx core depending on device\n" | tee -a "$LOG_FILE"
# if [ ! -f "/boot/rk3566.dtb" ] && [ ! -f "/boot/rk3566-OC.dtb" ]; then
# mv -fv /home/ark/.config/retroarch/cores/mednafen_psx_hw_libretro.so.rk3326 /home/ark/.config/retroarch/cores/mednafen_psx_hw_libretro.so | tee -a "$LOG_FILE"
# else
# rm -fv /home/ark/.config/retroarch/cores/mednafen_psx_hw_libretro.so.rk3326 | tee -a "$LOG_FILE"
# fi

# printf "\nAdd mednafen (beetle) psx core as additional core for PSX\n" | tee -a "$LOG_FILE"
# sed -i '/<core>duckstation<\/core>/s//<core>mednafen_psx_hw<\/core>\n\t <core>duckstation<\/core>/' /etc/emulationstation/es_systems.cfg

# printf "\nUpdate openborkeydemon.py\n" | tee -a "$LOG_FILE"
# sudo sed -i '/pkill OpenBOR/s//sudo kill -9 \$(pgrep -f OpenBOR)/g' /usr/local/bin/openborkeydemon.py

printf "\nCopy correct emulationstation depending on device\n" | tee -a "$LOG_FILE"
if [ -f "/boot/rk3326-r33s-linux.dtb" ] || [ -f "/boot/rk3326-r35s-linux.dtb" ] || [ -f "/boot/rk3326-r36s-linux.dtb" ] || [ -f "/boot/rk3326-rg351v-linux.dtb" ] || [ -f "/boot/rk3326-rg351mp-linux.dtb" ] || [ -f "/boot/rk3326-gameforce-linux.dtb" ]; then
sudo mv -fv /home/ark/emulationstation.351v /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
sudo rm -fv /home/ark/emulationstation.* | tee -a "$LOG_FILE"
sudo chmod -v 777 /usr/bin/emulationstation/emulationstation* | tee -a "$LOG_FILE"
elif [ -f "/boot/rk3326-odroidgo2-linux.dtb" ] || [ -f "/boot/rk3326-odroidgo2-linux-v11.dtb" ] || [ -f "/boot/rk3326-odroidgo3-linux.dtb" ]; then
test=$(stat -c %s "/usr/bin/emulationstation/emulationstation")
if [ "$test" = "3416928" ]; then
sudo cp -fv /home/ark/emulationstation.351v /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
elif [ -f "/home/ark/.config/.DEVICE" ]; then
sudo cp -fv /home/ark/emulationstation.rgb10max /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
else
sudo cp -fv /home/ark/emulationstation.header /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
fi
if [ -f "/home/ark/.config/.DEVICE" ]; then
sudo cp -fv /home/ark/emulationstation.rgb10max /usr/bin/emulationstation/emulationstation.header | tee -a "$LOG_FILE"
else
sudo cp -fv /home/ark/emulationstation.header /usr/bin/emulationstation/emulationstation.header | tee -a "$LOG_FILE"
fi
sudo cp -fv /home/ark/emulationstation.351v /usr/bin/emulationstation/emulationstation.fullscreen | tee -a "$LOG_FILE"
sudo rm -fv /home/ark/emulationstation.* | tee -a "$LOG_FILE"
sudo chmod -v 777 /usr/bin/emulationstation/emulationstation* | tee -a "$LOG_FILE"
elif [ -f "/boot/rk3566.dtb" ] || [ -f "/boot/rk3566-OC.dtb" ]; then
sudo mv -fv /home/ark/emulationstation.503 /usr/bin/emulationstation/emulationstation | tee -a "$LOG_FILE"
sudo rm -fv /home/ark/emulationstation.* | tee -a "$LOG_FILE"
sudo chmod -v 777 /usr/bin/emulationstation/emulationstation* | tee -a "$LOG_FILE"
fi

printf "\nUpdate boot text to reflect current version of ArkOS\n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 2.0 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth

touch "$UPDATE_DONE"
rm -v -- "$0" | tee -a "$LOG_FILE"
printf "\033c" >> /dev/tty1
Expand Down
Loading

0 comments on commit 4da4019

Please sign in to comment.