mirror of
https://github.com/CosmicScale/PSBBN-Definitive-English-Patch.git
synced 2025-03-10 02:07:45 +01:00
support mount.exfat-fuse helper (#80)
* handle mount.exfat-fuse * undo path change * normalize tabs * try kernel mount, then fuse * conditional
This commit is contained in:
parent
fd88d0157d
commit
6e74b6b357
@ -680,7 +680,23 @@ echo >> "${LOG_FILE}"
|
||||
# Syncing PS2 games
|
||||
echo "Mounting OPL partition" | tee -a "${LOG_FILE}"
|
||||
mkdir "${TOOLKIT_PATH}"/OPL 2>> "${LOG_FILE}"
|
||||
|
||||
sudo mount ${DEVICE}3 "${TOOLKIT_PATH}"/OPL
|
||||
|
||||
# Handle possibility host system's `mount` is using Fuse
|
||||
if [ $? -ne 0 ] && hash mount.exfat-fuse; then
|
||||
sudo mount.exfat-fuse ${DEVICE}3 "${TOOLKIT_PATH}"/OPL
|
||||
fi
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo
|
||||
echo
|
||||
echo "Error: Failed to mount ${DEVICE}3 - did you run 01-Setup.sh?"
|
||||
read -n 1 -s -r -p "Press any key to exit..."
|
||||
echo
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo | tee -a "${LOG_FILE}"
|
||||
echo "Syncing PS2 games..." | tee -a "${LOG_FILE}"
|
||||
sudo rsync -r --progress --ignore-existing --delete --exclude=".*" "${GAMES_PATH}/CD/" "${TOOLKIT_PATH}/OPL/CD/" 2>>"${LOG_FILE}" | tee -a "${LOG_FILE}"
|
||||
@ -954,4 +970,4 @@ echo | tee -a "${LOG_FILE}"
|
||||
echo "Game installer script complete." | tee -a "${LOG_FILE}"
|
||||
echo
|
||||
read -n 1 -s -r -p "Press any key to exit..."
|
||||
echo
|
||||
echo
|
||||
|
Loading…
x
Reference in New Issue
Block a user