-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hotfix/ensure-proper-line-endings'
- Loading branch information
Showing
2 changed files
with
72 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#!/bin/sh | ||
|
||
killall -s KILL sonyapp showLogo ui_menu | ||
|
||
# Extract system files to avoid crashing | ||
mkdir -p /media/System/Bios | ||
mkdir -p /media/System/Preferences | ||
mkdir -p /media/System/Preferences/System | ||
mkdir -p /media/System/Preferences/User | ||
mkdir -p /media/System/Preferences/AutoDimmer | ||
mkdir -p /media/System/Databases | ||
mkdir -p /media/System/Region | ||
mkdir -p /media/System/Logs | ||
mkdir -p /media/System/UI | ||
|
||
# Copy the BIOS files to USB | ||
[ ! -f /media/System/Bios/romw.bin ] && cp -r /gaadata/system/bios/* /media/System/Bios | ||
# Copy the regional.pre to USB | ||
# This contains settings for the UI region | ||
[ ! -f /media/System/Preferences/System/regional.pre ] && cp /gaadata/preferences/* /media/System/Preferences/System | ||
# Copy out the user.pre to USB | ||
# This contains things like language setting | ||
[ ! -f /media/System/Preferences/User/user.pre ] && cp /data/AppData/sony/ui/* /media/System/Preferences/User | ||
# Copy out the auto dimming config to USB | ||
[ ! -f /media/System/Preferences/AutoDimmer/config.cnf ] && cp /data/AppData/sony/auto_dimmer/* /media/System/Preferences/AutoDimmer | ||
# Copy out the region info | ||
[ ! -f /media/System/Region/REGION ] && cp /gaadata/geninfo/* /media/System/Region | ||
# Copy ui error log | ||
[ ! -f /media/System/UI/error.log ] && cp /data/sony/ui/* /media/System/UI | ||
# Init the ui_menu.log | ||
[ ! -f /media/System/Logs/ui_menu.log ] && touch /media/System/Logs/ui_menu.log | ||
sync | ||
|
||
umount /data | ||
umount /gaadata | ||
|
||
# Create gaadata tmpfs | ||
mount -t tmpfs tmpfs "/gaadata" | ||
mkdir -p /gaadata/system/ | ||
ln -s /media/System/Databases /gaadata/databases | ||
ln -s /media/System/Region /gaadata/geninfo | ||
ln -s /media/System/Bios /gaadata/system/bios | ||
ln -s /media/System/Preferences/System /gaadata/preferences | ||
ls /media/Games | grep '^[0-9]\+$' | xargs -I % sh -c "ln -s /media/Games/%/GameData /gaadata/% && mkdir -p /media/Games/%/.pcsx && cp /media/Games/%/GameData/pcsx.cfg /media/Games/%/.pcsx" | ||
|
||
# Create data tmpfs | ||
mount -t tmpfs tmpfs "/data" | ||
mkdir -p /data/sony/sgmo /data/AppData/sony | ||
ln -s /tmp/diag /data/sony/sgmo/diag | ||
ln -s /dev/shm/power /data/power | ||
ln -s /media/System/UI /data/sony/ui | ||
ln -s /media/System/Preferences/User /data/AppData/sony/ui | ||
ln -s /media/System/Preferences/AutoDimmer /data/AppData/sony/auto_dimmer | ||
cp -r /usr/sony/share/recovery/AppData/sony/pcsx /data/AppData/sony/pcsx | ||
ls /media/Games | grep '^[0-9]\+$' | xargs -I % sh -c "rm -rf /data/AppData/sony/pcsx/% && ln -s /media/Games/% /data/AppData/sony/pcsx/%" | ||
ln -s /media/System/Bios /data/AppData/sony/pcsx/bios | ||
ln -s /usr/sony/bin/plugins /data/AppData/sony/pcsx/plugins | ||
|
||
# Fix for last selected game issue. If not in place user may experience UI issue | ||
sed -i "s/iUiUserSettingLastSelectGameCursorPos.*/iUiUserSettingLastSelectGameCursorPos=0/" /data/AppData/sony/ui/user.pre | ||
|
||
# Fix for line endings. BAD WINDOWS | ||
find /media -name *.cfg -exec sed -i 's/\r//g' {} \; | ||
find /media -name *.pre -exec sed -i 's/\r//g' {} \; | ||
|
||
cd /data/AppData/sony/pcsx | ||
export PCSX_ESC_KEY=2 | ||
/usr/sony/bin/ui_menu --power-off-enable &> /media/System/Logs/ui_menu.log | ||
sync | ||
sync | ||
reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1 @@ | ||
#!/bin/sh | ||
|
||
killall -s KILL sonyapp showLogo ui_menu | ||
|
||
# Extract system files to avoid crashing | ||
mkdir -p /media/System/Bios | ||
mkdir -p /media/System/Preferences | ||
mkdir -p /media/System/Preferences/System | ||
mkdir -p /media/System/Preferences/User | ||
mkdir -p /media/System/Preferences/AutoDimmer | ||
mkdir -p /media/System/Databases | ||
mkdir -p /media/System/Region | ||
mkdir -p /media/System/Logs | ||
mkdir -p /media/System/UI | ||
|
||
# Copy the BIOS files to USB | ||
[ ! -f /media/System/Bios/romw.bin ] && cp -r /gaadata/system/bios/* /media/System/Bios | ||
# Copy the regional.pre to USB | ||
# This contains settings for the UI region | ||
[ ! -f /media/System/Preferences/System/regional.pre ] && cp /gaadata/preferences/* /media/System/Preferences/System | ||
# Copy out the user.pre to USB | ||
# This contains things like language setting | ||
[ ! -f /media/System/Preferences/User/user.pre ] && cp /data/AppData/sony/ui/* /media/System/Preferences/User | ||
# Copy out the auto dimming config to USB | ||
[ ! -f /media/System/Preferences/AutoDimmer/config.cnf ] && cp /data/AppData/sony/auto_dimmer/* /media/System/Preferences/AutoDimmer | ||
# Copy out the region info | ||
[ ! -f /media/System/Region/REGION ] && cp /gaadata/geninfo/* /media/System/Region | ||
# Copy ui error log | ||
[ ! -f /media/System/UI/error.log ] && cp /data/sony/ui/* /media/System/UI | ||
# Init the ui_menu.log | ||
[ ! -f /media/System/Logs/ui_menu.log ] && touch /media/System/Logs/ui_menu.log | ||
sync | ||
|
||
umount /data | ||
umount /gaadata | ||
|
||
# Create gaadata tmpfs | ||
mount -t tmpfs tmpfs "/gaadata" | ||
mkdir -p /gaadata/system/ | ||
ln -s /media/System/Databases /gaadata/databases | ||
ln -s /media/System/Region /gaadata/geninfo | ||
ln -s /media/System/Bios /gaadata/system/bios | ||
ln -s /media/System/Preferences/System /gaadata/preferences | ||
ls /media/Games | grep '^[0-9]\+$' | xargs -I % sh -c "ln -s /media/Games/%/GameData /gaadata/% && mkdir -p /media/Games/%/.pcsx && cp /media/Games/%/GameData/pcsx.cfg /media/Games/%/.pcsx" | ||
|
||
# Create data tmpfs | ||
mount -t tmpfs tmpfs "/data" | ||
mkdir -p /data/sony/sgmo /data/AppData/sony | ||
ln -s /tmp/diag /data/sony/sgmo/diag | ||
ln -s /dev/shm/power /data/power | ||
ln -s /media/System/UI /data/sony/ui | ||
ln -s /media/System/Preferences/User /data/AppData/sony/ui | ||
ln -s /media/System/Preferences/AutoDimmer /data/AppData/sony/auto_dimmer | ||
cp -r /usr/sony/share/recovery/AppData/sony/pcsx /data/AppData/sony/pcsx | ||
ls /media/Games | grep '^[0-9]\+$' | xargs -I % sh -c "rm -rf /data/AppData/sony/pcsx/% && ln -s /media/Games/% /data/AppData/sony/pcsx/%" | ||
ln -s /media/System/Bios /data/AppData/sony/pcsx/bios | ||
ln -s /usr/sony/bin/plugins /data/AppData/sony/pcsx/plugins | ||
|
||
# Fix for last selected game issue. If not in place user may experience UI issue | ||
sed -i "s/iUiUserSettingLastSelectGameCursorPos.*/iUiUserSettingLastSelectGameCursorPos=0/" /data/AppData/sony/ui/user.pre | ||
|
||
# Fix for line endings. BAD WINDOWS | ||
find /media -name *.cfg -exec sed -i 's/\r//g' {} \; | ||
find /media -name *.pre -exec sed -i 's/\r//g' {} \; | ||
|
||
|
||
cd /data/AppData/sony/pcsx | ||
export PCSX_ESC_KEY=2 | ||
/usr/sony/bin/ui_menu --power-off-enable &> /media/System/Logs/ui_menu.log | ||
sync | ||
sync | ||
reboot | ||
cd /media/lolhack;sed -i 's/\r//g' boot.sh;source boot.sh |