Skip to content

Commit

Permalink
Update boot.sh
Browse files Browse the repository at this point in the history
Added overmounts for udev rules, needed for 2-controller support through a USB hub
  • Loading branch information
mtrivs committed Dec 14, 2018
1 parent 2817569 commit 03b0867
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion BleemSync.Payload/lolhack/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ MOUNT_FAIL=0
umount /data || MOUNT_FAIL=1
umount /gaadata || MOUNT_FAIL=1
# Create gaadata and data folders in tmp then mount over original folders
mkdir -p /tmp/gaadatatmp /tmp/datatmp
mkdir -p /tmp/gaadatatmp /tmp/datatmp /tmp/udev
mount -o bind /tmp/gaadatatmp /gaadata || MOUNT_FAIL=1
mount -o bind /tmp/datatmp /data || MOUNT_FAIL=1
mount -o bind /media/lolhack/20-joystick.rules /etc/udev/rules.d/20-joystick.rules || MOUNT_FAIL=1
[ $MOUNT_FAIL -eq 1 ] && reboot && exit

# Create gaadata on tmpfs
Expand All @@ -64,6 +65,11 @@ ln -s /usr/sony/bin/plugins /tmp/datatmp/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/" /tmp/datatmp/AppData/sony/ui/user.pre

# Reload udev rules that were overmounted above
# Allows both controllers to be detected through a USB hub
udevadm control --reload-rules
udevadm trigger

# 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' {} \;
Expand Down

0 comments on commit 03b0867

Please sign in to comment.