You certainly don't provide enough info!
What do you mean Amiga wouldn't boot correctly?
From what I can understand you just declared CardReset and CardPatch and you didn't have an PCMCIA adapter inserted upon boot... alas the system stalled.
Just for information, CardReset returns an error 10, when it doesn't find card inserted.
You can either bypass it by using a FailAt 11 or you can just output the error to NIL and be done with it.
So... the correct way to declare CardReset and CardPatch in Startup-Sequence are the following two:
FailAt 11
C:CardPatch
C:CardReset TICKS 50
...or...
C:CardPatch
Run >NIL: C:CardReset TICKS 50