Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhaitian committed Jan 22, 2021
1 parent 47c4f45 commit c727a16
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 9 deletions.
24 changes: 22 additions & 2 deletions Update-RG351P.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
clear

UPDATE_DATE="01182021"
UPDATE_DATE="01212021"
LOG_FILE="/home/ark/update$UPDATE_DATE.log"
UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE"

Expand Down Expand Up @@ -1322,7 +1322,7 @@ if [ ! -f "/home/ark/.config/.update01172021" ]; then
touch "/home/ark/.config/.update01172021"
fi

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

printf "\nFix retroarch N64 no sound issue from last update\n" | tee -a "$LOG_FILE"
sudo wget https://github.com/christianhaitian/arkos/raw/main/01182021/arkosupdate01182021.zip -O /home/ark/arkosupdate01182021.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate01182021.zip | tee -a "$LOG_FILE"
Expand All @@ -1339,6 +1339,26 @@ 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 1.5 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update01182021"
fi

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

printf "\nAdjust sound settings in ArkOS so future updates should not impact emulators and ports needing direct access to set sound\nUpdate kyra.dat for standalone scummvm\n" | tee -a "$LOG_FILE"
sudo wget https://github.com/christianhaitian/arkos/raw/main/01212021/arkosupdate01212021.zip -O /home/ark/arkosupdate01212021.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate01212021.zip | tee -a "$LOG_FILE"
if [ -f "/home/ark/arkosupdate01212021.zip" ]; then
sudo unzip -X -o /home/ark/arkosupdate01212021.zip -d / | tee -a "$LOG_FILE"
sudo rm -v /home/ark/arkosupdate01212021.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

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

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

UPDATE_DATE="01182021"
UPDATE_DATE="01212021"
LOG_FILE="/home/ark/update$UPDATE_DATE.log"
UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE"

Expand Down Expand Up @@ -363,7 +363,7 @@ if [ ! -f "/home/ark/.config/.update01172021" ]; then
touch "/home/ark/.config/.update01172021"
fi

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

printf "\nFix retroarch N64 no sound issue from last update\n" | tee -a "$LOG_FILE"
sudo wget https://github.com/christianhaitian/arkos/raw/main/01182021/arkosupdate01182021.zip -O /home/ark/arkosupdate01182021.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate01182021.zip | tee -a "$LOG_FILE"
Expand All @@ -380,6 +380,26 @@ 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 1.5 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update01182021"
fi

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

printf "\nAdjust sound settings in ArkOS so future updates should not impact emulators and ports needing direct access to set sound\nUpdate kyra.dat for standalone scummvm\n" | tee -a "$LOG_FILE"
sudo wget https://github.com/christianhaitian/arkos/raw/main/01212021/arkosupdate01212021.zip -O /home/ark/arkosupdate01212021.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate01212021.zip | tee -a "$LOG_FILE"
if [ -f "/home/ark/arkosupdate01212021.zip" ]; then
sudo unzip -X -o /home/ark/arkosupdate01212021.zip -d / | tee -a "$LOG_FILE"
sudo rm -v /home/ark/arkosupdate01212021.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

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

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

UPDATE_DATE="01182021"
UPDATE_DATE="01212021"
LOG_FILE="/home/ark/update$UPDATE_DATE.log"
UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE"

Expand Down Expand Up @@ -363,7 +363,7 @@ if [ ! -f "/home/ark/.config/.update01172021" ]; then
touch "/home/ark/.config/.update01172021"
fi

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

printf "\nFix retroarch N64 no sound issue from last update\n" | tee -a "$LOG_FILE"
sudo wget https://github.com/christianhaitian/arkos/raw/main/01182021/arkosupdate01182021.zip -O /home/ark/arkosupdate01182021.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate01182021.zip | tee -a "$LOG_FILE"
Expand All @@ -380,6 +380,26 @@ 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 1.5 ($UPDATE_DATE)" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update01182021"
fi

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

printf "\nAdjust sound settings in ArkOS so future updates should not impact emulators and ports needing direct access to set sound\nAdd fixed controls for the standalone Amiga emulator (Amiberry)\nUpdate kyra.dat for standalone scummvm\n" | tee -a "$LOG_FILE"
sudo wget https://github.com/christianhaitian/arkos/raw/main/01212021/rk2020/arkosupdate01212021.zip -O /home/ark/arkosupdate01212021.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate01212021.zip | tee -a "$LOG_FILE"
if [ -f "/home/ark/arkosupdate01212021.zip" ]; then
sudo unzip -X -o /home/ark/arkosupdate01212021.zip -d / | tee -a "$LOG_FILE"
sudo rm -v /home/ark/arkosupdate01212021.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

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

touch "$UPDATE_DONE"
rm -v -- "$0" | tee -a "$LOG_FILE"
printf "\033c" >> /dev/tty1
Expand Down
6 changes: 5 additions & 1 deletion changelogs/rg351p-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,8 @@ v1.5 (01/17/2021)
- Increase audio period and buffer sizes temporarily when running PSP (may improve performance in some games)

v1.5 (01/18/2021)
- Fixed retroarch N64 no sound issue from last update
- Fixed retroarch N64 no sound issue from last update

v1.5 (01/21/2021)
- Adjusted sound configuration in ArkOS so future updates should not impact emulators and ports needing direct access to set sound
- Added correct kyra.dat file to Standalone ScummVM
6 changes: 5 additions & 1 deletion changelogs/rgb10-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,8 @@ v1.5 (01/17/2021)
- Increase audio period and buffer sizes temporarily when running PSP (may improve performance in some games)

v1.5 (01/18/2021)
- Fixed retroarch N64 no sound issue from last update
- Fixed retroarch N64 no sound issue from last update

v1.5 (01/21/2021)
- Adjusted sound configuration in ArkOS so future updates should not impact emulators and ports needing direct access to set sound
- Added correct kyra.dat file to Standalone ScummVM
7 changes: 6 additions & 1 deletion changelogs/rk2020-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,9 @@ v1.5 (01/17/2021)
- Increase audio period and buffer sizes temporarily when running PSP (may improve performance in some games)

v1.5 (01/18/2021)
- Fixed retroarch N64 no sound issue from last update
- Fixed retroarch N64 no sound issue from last update

v1.5 (01/21/2021)
- Adjusted sound configuration in ArkOS so future updates should not impact emulators and ports needing direct access to set sound
- Added fixed controls for the standalone Amiga emulator (Amiberry)
- Added correct kyra.dat file to Standalone ScummVM

0 comments on commit c727a16

Please sign in to comment.