Add a 'mediaClose' script command to close the open media. An example use
would be to unmount the CD you installed from and prompt the user to eject it before rebooting the machine. Sponsored by: The Weather Channel
This commit is contained in:
parent
1b3b69c6ec
commit
3566425519
@ -45,6 +45,7 @@
|
||||
static int dispatch_shutdown(dialogMenuItem *unused);
|
||||
static int dispatch_systemExecute(dialogMenuItem *unused);
|
||||
static int dispatch_msgConfirm(dialogMenuItem *unused);
|
||||
static int dispatch_mediaClose(dialogMenuItem *unused);
|
||||
|
||||
static struct _word {
|
||||
char *name;
|
||||
@ -94,6 +95,7 @@ static struct _word {
|
||||
{ "installVarDefaults", installVarDefaults },
|
||||
{ "loadConfig", dispatch_load_file },
|
||||
{ "loadFloppyConfig", dispatch_load_floppy },
|
||||
{ "mediaClose", dispatch_mediaClose },
|
||||
{ "mediaSetCDROM", mediaSetCDROM },
|
||||
{ "mediaSetFloppy", mediaSetFloppy },
|
||||
{ "mediaSetDOS", mediaSetDOS },
|
||||
@ -205,6 +207,13 @@ dispatch_msgConfirm(dialogMenuItem *unused)
|
||||
return DITEM_FAILURE;
|
||||
}
|
||||
|
||||
static int
|
||||
dispatch_mediaClose(dialogMenuItem *unused)
|
||||
{
|
||||
mediaClose();
|
||||
return DITEM_SUCCESS;
|
||||
}
|
||||
|
||||
static int
|
||||
call_possible_resword(char *name, dialogMenuItem *value, int *status)
|
||||
{
|
||||
|
@ -715,6 +715,11 @@ configuration file from another.
|
||||
.It configFile
|
||||
The fully qualified pathname of the file to load.
|
||||
.El
|
||||
.It mediaClose
|
||||
If a media device is open, close it.
|
||||
.Pp
|
||||
.Sy Variables :
|
||||
None
|
||||
.It mediaSetCDROM
|
||||
Select a
|
||||
.Fx
|
||||
|
@ -45,6 +45,7 @@
|
||||
static int dispatch_shutdown(dialogMenuItem *unused);
|
||||
static int dispatch_systemExecute(dialogMenuItem *unused);
|
||||
static int dispatch_msgConfirm(dialogMenuItem *unused);
|
||||
static int dispatch_mediaClose(dialogMenuItem *unused);
|
||||
|
||||
static struct _word {
|
||||
char *name;
|
||||
@ -94,6 +95,7 @@ static struct _word {
|
||||
{ "installVarDefaults", installVarDefaults },
|
||||
{ "loadConfig", dispatch_load_file },
|
||||
{ "loadFloppyConfig", dispatch_load_floppy },
|
||||
{ "mediaClose", dispatch_mediaClose },
|
||||
{ "mediaSetCDROM", mediaSetCDROM },
|
||||
{ "mediaSetFloppy", mediaSetFloppy },
|
||||
{ "mediaSetDOS", mediaSetDOS },
|
||||
@ -205,6 +207,13 @@ dispatch_msgConfirm(dialogMenuItem *unused)
|
||||
return DITEM_FAILURE;
|
||||
}
|
||||
|
||||
static int
|
||||
dispatch_mediaClose(dialogMenuItem *unused)
|
||||
{
|
||||
mediaClose();
|
||||
return DITEM_SUCCESS;
|
||||
}
|
||||
|
||||
static int
|
||||
call_possible_resword(char *name, dialogMenuItem *value, int *status)
|
||||
{
|
||||
|
@ -715,6 +715,11 @@ configuration file from another.
|
||||
.It configFile
|
||||
The fully qualified pathname of the file to load.
|
||||
.El
|
||||
.It mediaClose
|
||||
If a media device is open, close it.
|
||||
.Pp
|
||||
.Sy Variables :
|
||||
None
|
||||
.It mediaSetCDROM
|
||||
Select a
|
||||
.Fx
|
||||
|
Loading…
Reference in New Issue
Block a user