In the "Reboot actions" dialog, you may tell &xshutdown; not to use its internal reboot
routine, but any other executable, which you can can specify.
The items you specify here will appear in the &xshutdown; confirmation window;
if you specify something different than "Default" in that window, the command
you have configured here will be executed instead of the normal &xshutdown; reboot
function.
This is especially useful if you have the IBM Boot Manager installed, which comes
with &os2;. The Boot Manager can be activated from the command line by using
the SETBOOT command.
See the documentation in the
&os2; Command Reference for details.
In &xshutdown;'s context, the "reboot to" function of this command can be handy. This
function is accessed with the "/iba:<os>" option of SETBOOT,
with "<os>" being the exact name of
the operating system as it appears in the Boot Manager menu after system startup. By using
this option, the system will reboot without showing the Boot Manager menu, but starting
the specified partition directly.
For example, if you wish to boot to PC-DOS 7 directly, which carries the title
"PC-DOS 7" in the Boot Manager menu, type at the command line:
setboot /iba:"PC-DOS 7"
Now, with this example, if you wish to make PC-DOS 7
a user reboot action of &xshutdown;, do the following:
- Press the "New" button.
- In the "Action description" field, enter whatever you wish to see in the &xshutdown;
confirmation dialog (e.g. "PC-DOS 7").
- In the "Action command line" field, enter the command to execute, in this case:
setboot /iba:"PC-DOS 7"
- Press "OK". The item will appear in the &xshutdown; confirmation dialog the next
time you attempt to shut down your system.
Starting with V0.9.0, a "Partitions" button has been added to this dialog.
This button is only enabled if a reboot action is selected in the list box on top;
you might need to press the "New" button before the "Partitions" button becomes enabled.
After pressing that button you will get a menu which shows you all the bootable partitions
on your system. Note that this only works if you have the BootManager installed, since
this will read in the partition tables directly and look for BootManager items.
Now, if you select an item from that menu, the currently selected reboot action
is updated with the proper title and command for SETBOOT.EXE
.
Important notes:
- There is NO ERROR CHECKING, neither in the "Reboot actions" dialog, nor at the
time of shutdown. If you misspell the command to be executed or use SETBOOT
although Boot Manager is not installed, the system
will simply hang after all windows have been closed.
- If you don't know the exact titles
of the Boot Manager partitions on your system and the "Partitions" button is not
working, you can start
FDISK (or
LVM
on Aurora) from a command line and copy them
manually from there.
- The command you enter here is started after all windows have been closed and the
INI files have been saved; however, file systems will not be released by &xshutdown; if you
select a user reboot. &xshutdown; assumes that the program you specify here will release
the file systems itself (i.e. call the DosShutdown API).
SETBOOT will do this, for example.
- The command you enter here is started via CMD.EXE with the /C
parameter. This
means that you may even execute a
REXX
script here, if you're really daring.
- As always, if you wish to execute a command with resides in a directory not
included in the PATH variable, you must specify the full
path.
For SETBOOT, this is not necessary, because it resides in the
OS2 directory.