mirror of
https://github.com/ISpillMyDrink/OpenSuperClone.git
synced 2026-05-03 13:30:49 +00:00
28 lines
491 B
Plaintext
28 lines
491 B
Plaintext
seti $printhelp = $printhelp
|
|
seti $help = $help
|
|
if $help = 1
|
|
echo 'This will soft reset the device if direct IO.'
|
|
echo 'If passthrough it will reopen the device.'
|
|
if $printhelp = 1
|
|
exit 0
|
|
endif
|
|
echo 'Hit ENTER to continue...'
|
|
userinput $choicestring
|
|
previousscript
|
|
endif
|
|
|
|
include good_subroutines.osc
|
|
|
|
|
|
if $direct_mode = 0
|
|
echo "Reopening the device"
|
|
reopendisk
|
|
else
|
|
echo "Performing a soft reset"
|
|
softreset
|
|
gosub show_ata_return_status
|
|
endif
|
|
|
|
previousscript
|
|
end
|