Is there a way to exit the User-Startup script?

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 645
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Is there a way to exit the User-Startup script?

Post by Hypex »

I'm slowly transferring all my applications to another system. And in the process filtering out those I need and what assigns are needed in User-Startup. I thought I would break it and continue work later.

The Quit command is used for that. However, I found that although it broke the script, it also broke the Startup-Sequence. Leaving me with a CLI window that wouldn't close and no Workbench.

I tried passing a RC of 5 with Quit but there was no difference. Is there a way to break or exit from a User-Startup script and continue the boot process? :?
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1714
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Is there a way to exit the User-Startup script?

Post by nbache »

Hypex wrote:Is there a way to break or exit from a User-Startup script and continue the boot process? :?
One way that comes to my mind would be to create a label with Lab at the end of User-Startup and then Skip to it.

Best regards,

Niels
User avatar
thomasrapp
Posts: 310
Joined: Sat Jun 18, 2011 11:22 pm

Re: Is there a way to exit the User-Startup script?

Post by thomasrapp »

I'd also suggest the Lab / Skip solution for exiting a script.

However, for a migration job like yours I would keep the old script with another name and copy/paste only those sections which shall be executed into the real user-startup file.
User avatar
Amigo1
Posts: 221
Joined: Sun Jan 01, 2012 3:32 pm

Re: Is there a way to exit the User-Startup script?

Post by Amigo1 »

Hypex wrote:I'm slowly transferring all my applications to another system. And in the process filtering out those I need and what assigns are needed in User-Startup. I thought I would break it and continue work later.

The Quit command is used for that. However, I found that although it broke the script, it also broke the Startup-Sequence. Leaving me with a CLI window that wouldn't close and no Workbench.

I tried passing a RC of 5 with Quit but there was no difference. Is there a way to break or exit from a User-Startup script and continue the boot process? :?
What about commenting out (with a column ";" ) the passages you do not want/need?
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 645
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Re: Is there a way to exit the User-Startup script?

Post by Hypex »

I also could do it with a Lab and Skip, yes, but I was wondering if there was a way to do it without a work around. In all the years I've used AmigaOS I don't ever recall coming across this problem. So just thought I'd ask. :)
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 645
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Re: Is there a way to exit the User-Startup script?

Post by Hypex »

Amigo1 wrote:What about commenting out (with a column ";" ) the passages you do not want/need?
That's exactly how I started doing it. But when you have a hundred lines to go through, it's gets a but tedious doing semi-colon, down, left, ... ;)
Post Reply