
Darren
Code: Select all
.key changebootpri
.def changebootpri programme:sources/changebootpri
set choice `requestchoice "Startauswahl" "*nBitte wählen Sie das gewünschte Startlaufwerk*n" "OS 3.9|WB 3.1|OS 4.0|MorphOS|Netboot|Abbruch"`
if $choice eq 0
skip quit
endif
if $choice eq 1 ; OS 3.9
<changebootpri> >nil: IDH0 1 ; OS 3.9
<changebootpri> >nil: IDH1 0 ; WB 3.1
<changebootpri> >nil: IDH2 0 ; OS 4.0
<changebootpri> >nil: IDH3 0 ; MorphOS
<changebootpri> >nil: IDH8 0 ; Netboot
set dev "IDH0 / OS 3.9"
skip done
endif
if $choice eq 2 ; WB 3.1
<changebootpri> >nil: IDH0 0 ; OS 3.9
<changebootpri> >nil: IDH1 1 ; WB 3.1
<changebootpri> >nil: IDH2 0 ; OS 4.0
<changebootpri> >nil: IDH3 0 ; MorphOS
<changebootpri> >nil: IDH8 0 ; Netboot
set dev "IDH1 / WB 3.1"
skip done
endif
if $choice eq 3 ; OS 4.0
<changebootpri> >nil: IDH0 0 ; OS 3.9
<changebootpri> >nil: IDH1 0 ; WB 3.1
<changebootpri> >nil: IDH2 1 ; OS 4.0
<changebootpri> >nil: IDH3 0 ; MorphOS
<changebootpri> >nil: IDH8 0 ; Netboot
set dev "IDH2 / OS 4.0"
skip done
endif
if $choice eq 4 ; MorphOS
<changebootpri> >nil: IDH0 0 ; OS 3.9
<changebootpri> >nil: IDH1 0 ; WB 3.1
<changebootpri> >nil: IDH2 0 ; OS 4.0
<changebootpri> >nil: IDH3 1 ; MorphOS
<changebootpri> >nil: IDH8 0 ; Netboot
set dev "IDH3 / MorphOS"
skip done
endif
if $choice eq 5 ; Netboot
<changebootpri> >nil: IDH0 0 ; OS 3.9
<changebootpri> >nil: IDH1 0 ; WB 3.1
<changebootpri> >nil: IDH2 0 ; OS 4.0
<changebootpri> >nil: IDH3 0 ; MorphOS
<changebootpri> >nil: IDH8 1 ; Netboot
set dev "IDH8 / Netboot"
skip done
endif
lab done
requestchoice >nil: "BootSelector" "Boot device set to $dev." "Ok"
lab quit
Thank you very much I will try this outthomasrapp wrote:I made a simple boot partition selector with RequestChoice and ChangeBootPri. No need to run HDToolbox or Media Toolbox or similar.
http://thomas-rapp.homepage.t-online.de ... ootpri.lha
Code: Select all
.key changebootpri .def changebootpri programme:sources/changebootpri set choice `requestchoice "Startauswahl" "*nBitte wählen Sie das gewünschte Startlaufwerk*n" "OS 3.9|WB 3.1|OS 4.0|MorphOS|Netboot|Abbruch"` if $choice eq 0 skip quit endif if $choice eq 1 ; OS 3.9 <changebootpri> >nil: IDH0 1 ; OS 3.9 <changebootpri> >nil: IDH1 0 ; WB 3.1 <changebootpri> >nil: IDH2 0 ; OS 4.0 <changebootpri> >nil: IDH3 0 ; MorphOS <changebootpri> >nil: IDH8 0 ; Netboot set dev "IDH0 / OS 3.9" skip done endif if $choice eq 2 ; WB 3.1 <changebootpri> >nil: IDH0 0 ; OS 3.9 <changebootpri> >nil: IDH1 1 ; WB 3.1 <changebootpri> >nil: IDH2 0 ; OS 4.0 <changebootpri> >nil: IDH3 0 ; MorphOS <changebootpri> >nil: IDH8 0 ; Netboot set dev "IDH1 / WB 3.1" skip done endif if $choice eq 3 ; OS 4.0 <changebootpri> >nil: IDH0 0 ; OS 3.9 <changebootpri> >nil: IDH1 0 ; WB 3.1 <changebootpri> >nil: IDH2 1 ; OS 4.0 <changebootpri> >nil: IDH3 0 ; MorphOS <changebootpri> >nil: IDH8 0 ; Netboot set dev "IDH2 / OS 4.0" skip done endif if $choice eq 4 ; MorphOS <changebootpri> >nil: IDH0 0 ; OS 3.9 <changebootpri> >nil: IDH1 0 ; WB 3.1 <changebootpri> >nil: IDH2 0 ; OS 4.0 <changebootpri> >nil: IDH3 1 ; MorphOS <changebootpri> >nil: IDH8 0 ; Netboot set dev "IDH3 / MorphOS" skip done endif if $choice eq 5 ; Netboot <changebootpri> >nil: IDH0 0 ; OS 3.9 <changebootpri> >nil: IDH1 0 ; WB 3.1 <changebootpri> >nil: IDH2 0 ; OS 4.0 <changebootpri> >nil: IDH3 0 ; MorphOS <changebootpri> >nil: IDH8 1 ; Netboot set dev "IDH8 / Netboot" skip done endif lab done requestchoice >nil: "BootSelector" "Boot device set to $dev." "Ok" lab quit
DarrenHD wrote:Thank you very much I will try this outthomasrapp wrote:I made a simple boot partition selector with RequestChoice and ChangeBootPri. No need to run HDToolbox or Media Toolbox or similar.
http://thomas-rapp.homepage.t-online.de ... ootpri.lha
Code: Select all
.key changebootpri .def changebootpri programme:sources/changebootpri set choice `requestchoice "Startauswahl" "*nBitte wählen Sie das gewünschte Startlaufwerk*n" "OS 3.9|WB 3.1|OS 4.0|MorphOS|Netboot|Abbruch"` if $choice eq 0 skip quit endif if $choice eq 1 ; OS 3.9 <changebootpri> >nil: IDH0 1 ; OS 3.9 <changebootpri> >nil: IDH1 0 ; WB 3.1 <changebootpri> >nil: IDH2 0 ; OS 4.0 <changebootpri> >nil: IDH3 0 ; MorphOS <changebootpri> >nil: IDH8 0 ; Netboot set dev "IDH0 / OS 3.9" skip done endif if $choice eq 2 ; WB 3.1 <changebootpri> >nil: IDH0 0 ; OS 3.9 <changebootpri> >nil: IDH1 1 ; WB 3.1 <changebootpri> >nil: IDH2 0 ; OS 4.0 <changebootpri> >nil: IDH3 0 ; MorphOS <changebootpri> >nil: IDH8 0 ; Netboot set dev "IDH1 / WB 3.1" skip done endif if $choice eq 3 ; OS 4.0 <changebootpri> >nil: IDH0 0 ; OS 3.9 <changebootpri> >nil: IDH1 0 ; WB 3.1 <changebootpri> >nil: IDH2 1 ; OS 4.0 <changebootpri> >nil: IDH3 0 ; MorphOS <changebootpri> >nil: IDH8 0 ; Netboot set dev "IDH2 / OS 4.0" skip done endif if $choice eq 4 ; MorphOS <changebootpri> >nil: IDH0 0 ; OS 3.9 <changebootpri> >nil: IDH1 0 ; WB 3.1 <changebootpri> >nil: IDH2 0 ; OS 4.0 <changebootpri> >nil: IDH3 1 ; MorphOS <changebootpri> >nil: IDH8 0 ; Netboot set dev "IDH3 / MorphOS" skip done endif if $choice eq 5 ; Netboot <changebootpri> >nil: IDH0 0 ; OS 3.9 <changebootpri> >nil: IDH1 0 ; WB 3.1 <changebootpri> >nil: IDH2 0 ; OS 4.0 <changebootpri> >nil: IDH3 0 ; MorphOS <changebootpri> >nil: IDH8 1 ; Netboot set dev "IDH8 / Netboot" skip done endif lab done requestchoice >nil: "BootSelector" "Boot device set to $dev." "Ok" lab quit
Darren
I'd like to make an icon out of it...I assume you could do this with IconX ?nbache wrote:I ended up just installing the ChangeBootPri command and type what I need each time I need it. I could have amended the script to my setup, and I'm sure it would have worked fine, but I haven't bothered so far
Anyway, the command works fine here as well. Thanks!
Betst regards,
Niels