1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-06 09:17:25 +00:00
This commit is contained in:
Jordan K. Hubbard 1997-06-13 17:55:32 +00:00
parent 08e6881746
commit 17c5409baf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26613
8 changed files with 44 additions and 8 deletions

View File

@ -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.15 1997/06/12 07:35:39 jkh Exp $
* $Id: dispatch.c,v 1.16 1997/06/13 09:34:10 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -98,6 +98,7 @@ static struct _word {
{ "mediaGetType", mediaGetType },
{ "optionsEditor", optionsEditor },
{ "register", configRegister }, /* Alias */
{ "packageAdd", packageAdd },
{ "addGroup", userAddGroup },
{ "addUser", userAddUser },
{ "shutdown", _shutdown },

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: package.c,v 1.60 1997/03/11 09:29:23 jkh Exp $
* $Id: package.c,v 1.61 1997/03/22 15:20:51 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -58,6 +58,21 @@ package_add(char *name)
return package_extract(mediaDevice, name, FALSE);
}
/* For use by dispatch */
int
packageAdd(dialogMenuItem *self)
{
char *cp;
cp = variable_get("package");
if (!cp) {
msgDebug("packageAdd: No package name passed in package variable\n");
return DITEM_FAILURE;
}
else
return package_add(cp);
}
Boolean
package_exists(char *name)
{

View File

@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
* $Id: sysinstall.h,v 1.132 1997/06/09 01:19:44 jkh Exp $
* $Id: sysinstall.h,v 1.133 1997/06/13 14:21:21 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -652,6 +652,7 @@ extern void mediaShutdownNFS(Device *dev);
extern int optionsEditor(dialogMenuItem *self);
/* package.c */
extern int packageAdd(dialogMenuItem *self);
extern int package_add(char *name);
extern int package_extract(Device *dev, char *name, Boolean depended);
extern Boolean package_exists(char *name);

View File

@ -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.15 1997/06/12 07:35:39 jkh Exp $
* $Id: dispatch.c,v 1.16 1997/06/13 09:34:10 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -98,6 +98,7 @@ static struct _word {
{ "mediaGetType", mediaGetType },
{ "optionsEditor", optionsEditor },
{ "register", configRegister }, /* Alias */
{ "packageAdd", packageAdd },
{ "addGroup", userAddGroup },
{ "addUser", userAddUser },
{ "shutdown", _shutdown },

View File

@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
* $Id: sysinstall.h,v 1.132 1997/06/09 01:19:44 jkh Exp $
* $Id: sysinstall.h,v 1.133 1997/06/13 14:21:21 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -652,6 +652,7 @@ extern void mediaShutdownNFS(Device *dev);
extern int optionsEditor(dialogMenuItem *self);
/* package.c */
extern int packageAdd(dialogMenuItem *self);
extern int package_add(char *name);
extern int package_extract(Device *dev, char *name, Boolean depended);
extern Boolean package_exists(char *name);

View File

@ -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.15 1997/06/12 07:35:39 jkh Exp $
* $Id: dispatch.c,v 1.16 1997/06/13 09:34:10 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -98,6 +98,7 @@ static struct _word {
{ "mediaGetType", mediaGetType },
{ "optionsEditor", optionsEditor },
{ "register", configRegister }, /* Alias */
{ "packageAdd", packageAdd },
{ "addGroup", userAddGroup },
{ "addUser", userAddUser },
{ "shutdown", _shutdown },

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: package.c,v 1.60 1997/03/11 09:29:23 jkh Exp $
* $Id: package.c,v 1.61 1997/03/22 15:20:51 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -58,6 +58,21 @@ package_add(char *name)
return package_extract(mediaDevice, name, FALSE);
}
/* For use by dispatch */
int
packageAdd(dialogMenuItem *self)
{
char *cp;
cp = variable_get("package");
if (!cp) {
msgDebug("packageAdd: No package name passed in package variable\n");
return DITEM_FAILURE;
}
else
return package_add(cp);
}
Boolean
package_exists(char *name)
{

View File

@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
* $Id: sysinstall.h,v 1.132 1997/06/09 01:19:44 jkh Exp $
* $Id: sysinstall.h,v 1.133 1997/06/13 14:21:21 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -652,6 +652,7 @@ extern void mediaShutdownNFS(Device *dev);
extern int optionsEditor(dialogMenuItem *self);
/* package.c */
extern int packageAdd(dialogMenuItem *self);
extern int package_add(char *name);
extern int package_extract(Device *dev, char *name, Boolean depended);
extern Boolean package_exists(char *name);