[iyonix-support] Re: New 5.14 ROM on Iyonix

On 29 Apr, Alan Adams <alan@xxxxxxxxxxxxxxxx> wrote:
> OSCLI("HELP UTILITYMODULE { > UTILITYVERSION/TXT }")
> X=OPENIN"UTILITYVERSION/TXT"
> IF X=0 THEN ERROR 1,"CANNOT OPEN INPUT"
> REPEAT
>   A$=GET$#X
> UNTIL (INSTR(A$,"MOS Utilities")>0) OR EOF#X
> CLOSE#X:X=0
> OSCLI("DELETE UTILITYVERSION/TXT")
> IF INSTR(A$,"MOS Utilities")<1 THEN PRINT"Not found":END
> A$=MID$(A$,INSTR(A$,"MOS Utilities")+13,999)
> I%=0
> WHILE(MID$(A$,I%,1))=" "
>   I%+=1
> ENDWHILE
> A$=MID$(A$,I%,99)
> I=VAL(A$)*100
> I%=INT(I+0.001)
> IF I%>513 THEN END
> OSCLI("RUN ADFS::HardDisc4.$.RiscOS-open.go514")
> END
>
> The logic is to check the version number, so it doesn't run the 
> softloader if 5.14 or 5.15 are already running. The code was extracted 
> from another application, where it successfully gets the OS version 
> from 3.1 to 4.39, including 5.xx.

What's wrong with putting:

  RMEnsure UtilityModule 5.14 Run softload.go514

somewhere into the early boot sequence and putting the softload archive
contents into !Boot.Library.softload.

?

Ta,

Steve

-- 
Stephen Revill, Director                           Tel: +44 (0) 1353 740 267
RISC OS Open Ltd                                          www.riscosopen.org
4 Townsend Mews, Wilburton, 
Ely, Cambridgeshire, CB6 3SQ
---
To alter your preferences or leave the group, 
visit http://www.freelists.org/list/iyonix-support
Other info via http://www.freelists.org/webpage/iyonix-support

Other related posts: