mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
More SD card path change actions
This commit is contained in:
parent
3bc51e3c02
commit
d7c33138d5
|
@ -106,9 +106,11 @@ else
|
||||||
|
|
||||||
# Update SD card path if changed from SteamOS update
|
# Update SD card path if changed from SteamOS update
|
||||||
if [[ ! -d $sdcard && "$(ls -A /run/media/deck/)" ]]; then
|
if [[ ! -d $sdcard && "$(ls -A /run/media/deck/)" ]]; then
|
||||||
|
prev_sd_path=$sdcard
|
||||||
configurator_generic_dialog "The SD card was not found in the expected location.\nThis may happen when SteamOS is updated.\n\nPlease browse to the current location of the SD card.\n\nIf you are not using an SD card, please click \"Cancel\"."
|
configurator_generic_dialog "The SD card was not found in the expected location.\nThis may happen when SteamOS is updated.\n\nPlease browse to the current location of the SD card.\n\nIf you are not using an SD card, please click \"Cancel\"."
|
||||||
sdcard=$(browse "SD Card Location")
|
new_sd_path=$(browse "SD Card Location")
|
||||||
conf_write
|
sed -i 's#'$prev_sd_path'#'$new_sd_path'#g' $rd_conf
|
||||||
source "$rd_conf"
|
source "$rd_conf"
|
||||||
|
emulators_post_move
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue