home *** CD-ROM | disk | FTP | other *** search
- ; $VER: diskspare install 1.0e (13.3.94)
-
- IF 38 VAL NOT GT $Workbench ;min 2.1
- SKIP Workbench21:
- ENDIF
- ;hier mit wb2.0
- COPY diskspare.device devs:
- COPY dd/mountlist devs:DD_MountList
- COPY hd/mountlist devs:HD_MountList
-
- ECHO "*Ec"
- ASK "Do you want to install DS0: [y/N]"
- IF WARN
- ASK "Is your Drive 'DF0:' a HD-Drive [y/N]"
- IF WARN
- ECHO "Mount DS0: from DEVS:HD_MountList" >T:l0.tmp
- ELSE
- ECHO "Mount DS0: from DEVS:DD_MountList" >T:l0.tmp
- ENDIF
- ECHO "AddBuffers DS0: >NIL:" >T:l1.tmp
- JOIN t:l0.tmp t:l1.tmp as t:ds0.tmp >NIL:
- ENDIF
-
- ECHO "*Ec"
- ASK "Do you want to install DS1: [y/N]"
- IF WARN
- ASK "Is your Drive 'DF1:' a HD-Drive [y/N]"
- IF WARN
- ECHO "Mount DS1: from DEVS:HD_MountList" >T:l0.tmp
- ELSE
- ECHO "Mount DS1: from DEVS:DD_MountList" >T:l0.tmp
- ENDIF
- ECHO "AddBuffers DS1: >NIL:" >T:l1.tmp
- JOIN t:l0.tmp t:l1.tmp as t:ds1.tmp >NIL:
- ENDIF
-
- ECHO "*Ec"
- ASK "Do you want to install DS2: [y/N]"
- IF WARN
- ASK "Is your Drive 'DF2:' a HD-Drive [y/N]"
- IF WARN
- ECHO "Mount DS2: from DEVS:HD_MountList" >T:l0.tmp
- ELSE
- ECHO "Mount DS2: from DEVS:DD_MountList" >T:l0.tmp
- ENDIF
- ECHO "AddBuffers DS2: >NIL:" >T:l1.tmp
- JOIN t:l0.tmp t:l1.tmp as t:ds2.tmp >NIL:
- ENDIF
-
- ECHO "*Ec"
- ASK "Do you want to install DS3: [y/N]"
- IF WARN
- ASK "Is your Drive 'DF3:' a HD-Drive [y/N]"
- IF WARN
- ECHO "Mount DS3: from DEVS:HD_MountList" >T:l0.tmp
- ELSE
- ECHO "Mount DS3: from DEVS:DD_MountList" >T:l0.tmp
- ENDIF
- ECHO "AddBuffers DS3: >NIL:" >T:l1.tmp
- JOIN t:l0.tmp t:l1.tmp as t:ds3.tmp >NIL:
- ENDIF
-
- ECHO "*Ec"
- DELETE t:l0.tmp >NIL: ;aufräumen
- DELETE t:l1.tmp >NIL:
- JOIN t:(#?.tmp) as t:dsm
- DELETE t:(#?.tmp) >NIL:
- JOIN s:user-startup t:dsm as t:startup >NIL:
- COPY t:startup S:User-Startup
- DELETE t:startup >NIL:
- DELETE t:dsm >NIL:
- SKIP Fertig: ;und tschüss
-
- ;*****************************************************************
- ;hier ab wb2.1
-
- LAB Workbench21:
- COPY diskspare.device devs:
-
- ECHO "*Ec"
- ASK "Do you want to install DS0: [y/N]"
- IF WARN
- ASK "Is your Drive 'DF0:' a HD-Drive [y/N]"
- IF WARN
- COPY hd/DS0(#?) devs:dosdrivers >NIL:
- ELSE
- COPY dd/DS0(#?) devs:dosdrivers >NIL:
- ENDIF
- ENDIF
-
- ECHO "*Ec"
- ASK "Do you want to install DS1: [y/N]"
- IF WARN
- ASK "Is your Drive 'DF1:' a HD-Drive [y/N]"
- IF WARN
- COPY hd/DS1(#?) devs:dosdrivers >NIL:
- ELSE
- COPY dd/DS1(#?) devs:dosdrivers >NIL:
- ENDIF
- ENDIF
-
- ECHO "*Ec"
- ASK "Do you want to install DS2: [y/N]"
- IF WARN
- ASK "Is your Drive 'DF2:' a HD-Drive [y/N]"
- IF WARN
- COPY hd/DS2(#?) devs:dosdrivers >NIL:
- ELSE
- COPY dd/DS2(#?) devs:dosdrivers >NIL:
- ENDIF
- ENDIF
-
- ECHO "*Ec"
- ASK "Do you want to install DS3: [y/N]"
- IF WARN
- ASK "Is your Drive 'DF3:' a HD-Drive [y/N]"
- IF WARN
- COPY hd/DS3(#?) devs:dosdrivers >NIL:
- ELSE
- COPY dd/DS3(#?) devs:dosdrivers >NIL:
- ENDIF
- ENDIF
-
- COPY dd/RDD(#?) sys:storage/dosdrivers >NIL:
- COPY hd/RHD(#?) sys:storage/dosdrivers >NIL:
- ECHO "*Ec"
-
- LAB Fertig:
- ECHO " Finished..."
- ECHO " Reboot your Machine to enable 'diskspare.device'"
- WAIT 2
- ENDCLI
-