AMG_Novice_Usr ha scritto:"setpatch" fa tutto questo automaticamente? A cosa serve esattamente questo comando? Come funziona?
Un comando importantissimo che è stato aggiornato molte volte ed è diverso fra i vari sistemi operativi, per intenderci non puoi usare quello di OS 3.9 su OS 2.x.
Allego una citazione corposa del "SetPatch" presa da Wikipedia
Format
SETPATCH [QUIET] [NOAGA] [NONSD] [PATCHCONFIGFILE=<NSDpatch file>]
[PATCHCONFIGLINE="PatchLine"] [PATCHINFO] [WAITFORVALIDATE]
[ADDCHIPRAM=<Size in MB>]
Template
QUIET/S,NOAGA/S,NONSD/S,PATCHCONFIGFILE=PCF/K,PATCHCONFIGLINE=PCL/K,PATCHINFO=PI/S,WAITFORVALIDATE/S,ADDCHIPRAM/N/K
Location
C:
SETPATCH installs temporary modifications to the operating system. It must be executed at the beginning of the Startup-sequence file.
By default SETPATCH enables the AGA video modes when running on an Amiga Classic with AGA chipset and the chipset was not disabled in the early startup menu. If you don't want to enable the AGA video modes, specify the NOAGA argument on the command line. When running on non-classic platforms, SETPATCH will not enable the AGA video modes (this may have happened already before) and the NOAGA argument has no effect.
SETPATCH can patch devices that don't follow the NewStyleDevice (NSD) specification released by Amiga Inc. Patches will be applied according to the list in the Devs:NSDPatch.cfg file.
Use the NONSD argument if you don't want to install patches for devices that are not NSD compliant.
To use a device list other than Devs:NSDPatch.cfg, use the PATCHCONFIGFILE argument and specify the full name of your alternate file. It is also possible to apply a patch giving it as argument to SETPATCH after the PATCHCONFIGLINE keyword. Just specify a line with the same syntax as in the NSDpatch file. Note that a complete description of the patch format is located in the Devs:NSDPatch.cfg file.
To display the patches applied by SETPATCH use the PATCHINFO argument.
When a disk is validating (after a system crash for example) it can be annoying to boot the operating system while the filesystem is busy to fix the damaged partition. In this case, the boot process may be very slow. Use the WAITFORVALIDATE switch to ask SETPATCH to wait for the end of the validation process before proceeding. Doing so you are sure that you start the system with sane partitions. Note: Pressing Ctrl-C (when an input shell window is present) or both mouse buttons will abort waiting for disk validation.
The ADDCHIPRAM option can be used on non-classic machines for backwards compatibility to old broken programs which peek system structures which were always declared as private, to be used by the operating system only. It installs an old-style MemHeader in SysBase->MemList. Note: You don't need to activate this compatibility hack for programs which simply want to allocate some Chip RAM.
By default, SETPATCH displays the operating system version and copyright as well as the list of applied patches. But if the QUIET argument is specified or the local shell variable _Verbosity has a negative value, no output will be produced.
Example 1
Don't apply NSD patches and wait the end of the validation process.
1> SETPATCH NONSD WAITFORVALIDATE
Example 2
Applies only the patch on audio.device.
1> SETPATCH PATCHCONFIGLINE="DEVICE audio.device
DEVICETYPE NSDEVTYPE_AUDIO VERSION 50 REVISION 5 ISNSD"
Example 3
Adds a MemHeader with 2MB Chip RAM as backwards compatibility hack for broken applications and suppresses the normal output.