diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-06-05 09:48:03 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-06-05 09:48:03 +0000 |
commit | 8e45ec2c8c6bd1731dbd6e613bacf12784585b3d (patch) | |
tree | 47b6dc98be72af98ae313709708cc4a518725867 /usr.sbin/sade/dispatch.c | |
parent | d5740fac52aefd9b8687af9644da19b76515d4eb (diff) | |
download | src-8e45ec2c8c6bd1731dbd6e613bacf12784585b3d.tar.gz src-8e45ec2c8c6bd1731dbd6e613bacf12784585b3d.zip |
Resurrect / implement some of the more esoteric scripting features,
such as partitioning a disk or overriding an interactive prompt.
Notes
Notes:
svn path=/head/; revision=26456
Diffstat (limited to 'usr.sbin/sade/dispatch.c')
-rw-r--r-- | usr.sbin/sade/dispatch.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/usr.sbin/sade/dispatch.c b/usr.sbin/sade/dispatch.c index 7e8c446dfadc..4776dadac5f5 100644 --- a/usr.sbin/sade/dispatch.c +++ b/usr.sbin/sade/dispatch.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: dispatch.c,v 1.12 1997/03/10 21:11:52 jkh Exp $ + * $Id: dispatch.c,v 1.13 1997/05/22 00:17:06 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -47,13 +47,20 @@ static struct _word { { "configRouter", configRouter }, { "configNFSServer", configNFSServer }, { "configSamba", configSamba }, - { "configRegister", configRegister }, + { "configNTP", configNTP }, + { "configPCNFSD", configPCNFSD }, + { "configNFSServer", configNFSServer }, { "configPackages", configPackages }, + { "configRegister", configRegister }, + { "configRouter", configRouter }, + { "configUsers", configUsers }, + { "configXFree86", configXFree86 }, { "diskPartitionEditor", diskPartitionEditor }, { "diskPartitionWrite", diskPartitionWrite }, { "diskLabelEditor", diskLabelEditor }, { "diskLabelCommit", diskLabelCommit }, { "distReset", distReset }, + { "distSetCustom", distSetDeveloper }, { "distSetDeveloper", distSetDeveloper }, { "distSetXDeveloper", distSetXDeveloper }, { "distSetKernDeveloper", distSetKernDeveloper }, @@ -69,9 +76,14 @@ static struct _word { { "docShowDocument", docShowDocument }, { "installCommit", installCommit }, { "installExpress", installExpress }, + { "installNovice", installNovice }, { "installUpgrade", installUpgrade }, { "installFixup", installFixup }, + { "installFixitHoloShell", installFixitHoloShell }, + { "installFixitCDROM", installFixitCDROM }, + { "installFixitFloppy", installFixitFloppy }, { "installFilesystems", installFilesystems }, + { "installVarDefaults", installVarDefaults }, { "mediaSetCDROM", mediaSetCDROM }, { "mediaSetFloppy", mediaSetFloppy }, { "mediaSetDOS", mediaSetDOS }, @@ -130,16 +142,17 @@ dispatchCommand(char *str) if ((cp = index(str, '\n')) != NULL) *cp = '\0'; - /* A command might be a pathname if it's encoded in argv[0], as we also support */ + /* If it's got a `=' sign in there, assume it's a variable setting */ if (index(str, '=')) { variable_set(str); i = DITEM_SUCCESS; } else { - if ((cp = index(str, '/')) != NULL) + /* A command might be a pathname if it's encoded in argv[0], which we also support */ + if ((cp = rindex(str, '/')) != NULL) str = cp + 1; if (!call_possible_resword(str, NULL, &i)) { - msgConfirm("No such command: %s", str); + msgNotify("Warning: No such command ``%s''", str); i = DITEM_FAILURE; } } |