Skip to content

Commit

Permalink
Merge pull request #33 from Slayer366/main
Browse files Browse the repository at this point in the history
Update RetroArch, SDL2, xroar, PortMaster
  • Loading branch information
Slayer366 authored Nov 5, 2024
2 parents 3dc21ac + e461161 commit 794a039
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 3 deletions.
Binary file added 11052024/arkosupdate11052024.zip
Binary file not shown.
57 changes: 54 additions & 3 deletions Update-RG351P.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
clear

UPDATE_DATE="09082024"
UPDATE_DATE="11052024"
LOG_FILE="/home/ark/update$UPDATE_DATE.log"
UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE"

Expand Down Expand Up @@ -1795,16 +1795,67 @@ if [ ! -f "/home/ark/.config/.update09082024" ]; then
fi


if [ ! -f "/home/ark/.config/.update11052024" ]; then

printf "\nUpdate RetroArch v1.19.1, Update SDl2 to 2.30.7, update xroar Tandy CoCo emulator, update script in tools to select SDL2 ver, Update PortMaster if older than 11-05-2024 stable \n" | tee -a "$LOG_FILE"
sudo wget --no-check-certificate https://github.com/wummle/arkos/raw/main/11052024/arkosupdate11052024.zip -O /home/ark/arkosupdate11052024.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate11052024.zip | tee -a "$LOG_FILE"
if [ -f "/home/ark/arkosupdate11052024.zip" ]; then
sudo unzip -X -o /home/ark/arkosupdate11052024.zip -d / | tee -a "$LOG_FILE"
sudo rm -v /home/ark/arkosupdate11052024.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"
sleep 3
echo $c_brightness > /sys/devices/platform/backlight/backlight/backlight/brightness
exit 1
fi

sudo chown -R ark:ark /opt/

printf "\nMake sure permissions for the ark home directory are set to 755\n" | tee -a "$LOG_FILE"
sudo chown -R ark:ark /home/ark
sudo chmod -R 755 /home/ark

### PortMaster Update if older than 2024.11.05-1445
if [ ! -f /opt/system/Tools/PortMaster/xmlstarlet ]; then
sudo chmod +x $HOME/Install.PortMaster.sh
touch $HOME/no_es_restart
$HOME/Install.PortMaster.sh
fi
# Delete the installer
sleep 1
rm -f $HOME/Install.PortMaster.sh

printf "\n Install and link new SDL 2.0.3000.7 \n" | tee -a "$LOG_FILE"
sudo mv -f -v /home/ark/sdl2-64/libSDL2-2.0.so.0.3000.7.rotated /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0.3000.7 | tee -a "$LOG_FILE"
sudo mv -f -v /home/ark/sdl2-32/libSDL2-2.0.so.0.3000.7.rotated /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0.3000.7 | tee -a "$LOG_FILE"
sudo rm -rfv /home/ark/sdl2-64 | tee -a "$LOG_FILE"
sudo rm -rfv /home/ark/sdl2-32 | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2.so /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0.3000.7 /usr/lib/aarch64-linux-gnu/libSDL2.so | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2.so /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0 /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0.3000.7 /usr/lib/arm-linux-gnueabihf/libSDL2.so | tee -a "$LOG_FILE"


printf "\nUpdate boot text to reflect final current version of ArkOS for the 351 P/M \n" | tee -a "$LOG_FILE"
#sudo sed -i "/title\=/c\title\=ArkOS 351P/M wuMMLe gaming & Slayer366" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update11052024"

fi


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


printf "\nEnsure 64bit and 32bit sdl2 is still properly linked\n" | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2.so /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0.3000.3 /usr/lib/aarch64-linux-gnu/libSDL2.so | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0.3000.7 /usr/lib/aarch64-linux-gnu/libSDL2.so | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2.so /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0 /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0.3000.3 /usr/lib/arm-linux-gnueabihf/libSDL2.so | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0.3000.7 /usr/lib/arm-linux-gnueabihf/libSDL2.so | tee -a "$LOG_FILE"

printf "\nUpdate boot text to reflect final current version of ArkOS for the 351 P/M \n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 351P/M wuMMLe & Slayer366 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth
Expand Down

0 comments on commit 794a039

Please sign in to comment.