Skip to content

Commit

Permalink
Merge pull request #35 from Slayer366/main
Browse files Browse the repository at this point in the history
Fix mounting and permissions for exFAT
  • Loading branch information
Slayer366 authored Nov 7, 2024
2 parents 887e882 + 6fe98be commit 529916a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
Binary file added 11072024/arkosupdate11072024.zip
Binary file not shown.
35 changes: 34 additions & 1 deletion Update-RG351P.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
clear

UPDATE_DATE="11062024"
UPDATE_DATE="11072024"
LOG_FILE="/home/ark/update$UPDATE_DATE.log"
UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE"

Expand Down Expand Up @@ -1846,6 +1846,39 @@ if [ ! -f "/home/ark/.config/.update11062024" ]; then
fi


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

printf "\nFix mounting method and permissions for exFAT partition in fstab \n" | tee -a "$LOG_FILE"
sudo wget --no-check-certificate https://github.com/wummle/arkos/raw/main/11072024/arkosupdate11072024.zip -O /home/ark/arkosupdate11072024.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate11072024.zip | tee -a "$LOG_FILE"
if [ -f "/home/ark/arkosupdate11072024.zip" ]; then
sudo unzip -X -o /home/ark/arkosupdate11072024.zip -d / | tee -a "$LOG_FILE"
sudo rm -v /home/ark/arkosupdate11072024.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

printf "\nEnsure 64bit and 32bit SDL2 are 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.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"

touch "/home/ark/.config/.update11072024"

fi


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


Expand Down

0 comments on commit 529916a

Please sign in to comment.