[comp.sys.atari.st] GEMBOOT and MWC V2.0

XBR1YD22@DDATHD21.BITNET (05/26/87)

Received: from BR1.THD.DA.D.EUROPE by DDATHD21.BITNET
          via GNET with RJE ; 26 May 87 00:58:21
Date:     Tue, 26 May 87 00:56:25 +0200 (Central European Summer Time)
From:     XBR1YD22%DDATHD21.BITNET@Forsythe.Stanford.EDU (Ralf Bayer {Herz-Baerchi})
Subject:  GEMBOOT and MWC V2.0
To:       info-atari16@score.stanford.edu
X-VMS-To: X%"info-atari16@score.stanford.edu",X%"ihnp4!mwc!dag@ucbvax.Berkeley.E
 DU",BR4::D76H,YD22

I just unpacked my copy of MWC V2.0 and had (expected) problems
with MSH (I'm using GEMBOOT to protect my harddisk). I took a
deep breath and wrote a little program that just displays it's
own basepage. When run with GEMBOOT present, it would display
an environment string like "PATH=;C:" or something like that,
when run from a floppy disk system (hard disk switched off) it
would show "PATH=" only.

Patching _shell_p to a 0L didn't help. So I took the address of
that path string from _shell_p and patched the '=' to '\0'.
With that hack, the new MSH worked like a charm.

I wrote a little program that does said patching automatically.
The caveat is, you can't simply put it in the autofolder, because
appearently doesn't let any programs from that folder execute
after it. (Thou shalt have no auto programs beside me? 8-)

I put the program in the same folder that contains MSH.PRG, PROFILE
and POSTFILE (I don't like searching for MSH among 30 other pgms in
the BIN folder), and after booting the machine I simply execute
BOOTFIX.PRG (from the desktop) and then MSH.PRG.

The following archive contains: BOOTFIX.C and BOOTFIX.PRG.

Ralf Bayer (The Care-Baer)
Computing Center @ the Technical University of Darmstadt, West Germany

Arpanet:   xbr1yd22%ddathd21.BITNET@wiscvm.wisc.EDU
BITNET:    xbr1yd22@ddathd21
-----------------------------------------------------------------------
                  > REAL programmers use FORTRAN <
-----------------------------------------------------------------------

------------------------cut here ------------------------------------
begin 644 bootfix.arc
M&@A"3T]41DE8+D,     8@   +D.8+',,'4    ,;<*D<8,B18,&"O8<5  "d
MQ!@T8>2 4-$F#QPZ<G8L;%@&#YTR<MPXA"A1!9PR9=:P*:@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d
M04#Q R08'&0  @<1P(0(,AB0* (.(*   Q9P *<#%,!@ 04H<""##PIPD"D$d
=!$!2@ ( '!  !0' #31"9 QPD )-(Z0@)!4 &@  d
 d
end
------------------------cut again------------------------------------