diff options
author | jkh <jkh@FreeBSD.org> | 1996-06-29 03:43:25 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-06-29 03:43:25 +0000 |
commit | e0a4a16767b6c3638ff6dc8f70866020a1367df3 (patch) | |
tree | a2a843a4e91bf492e100c7c1f340e7cf5b4fffdf /usr.sbin/sade | |
parent | ee1f52e852a3c4fe06e4787abb10d512f77a3cea (diff) | |
download | FreeBSD-src-e0a4a16767b6c3638ff6dc8f70866020a1367df3.zip FreeBSD-src-e0a4a16767b6c3638ff6dc8f70866020a1367df3.tar.gz |
Put my changes back - Thanks, Peter! Boy, an errant Tag sure can mess
you up! :-)
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r-- | usr.sbin/sade/config.c | 16 | ||||
-rw-r--r-- | usr.sbin/sade/menus.c | 2 | ||||
-rw-r--r-- | usr.sbin/sade/sade.h | 13 |
3 files changed, 25 insertions, 6 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index ca87140..f818d5f 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -578,6 +578,22 @@ configGated(dialogMenuItem *self) return ret; } +/* Load novell client/server package */ +int +configNovell(dialogMenuItem *self) +{ + int ret = DITEM_SUCCESS; + + if (variable_get(VAR_NOVELL)) + variable_unset(VAR_NOVELL); + else { + ret = package_add("commerce/netcon/bsd60"); + if (DITEM_STATUS(ret) == DITEM_SUCCESS) + variable_set2(VAR_NOVELL, "YES"); + } + return ret; +} + /* Load pcnfsd package */ int configPCNFSD(dialogMenuItem *self) diff --git a/usr.sbin/sade/menus.c b/usr.sbin/sade/menus.c index abfb417..0ee8a9c 100644 --- a/usr.sbin/sade/menus.c +++ b/usr.sbin/sade/menus.c @@ -1037,6 +1037,8 @@ aspects of your system's network configuration.", dmenuVarCheck, dmenuToggleVariable, NULL, "gateway=YES" }, { "Gated", "This machine wants to run gated instead of routed", dmenuVarCheck, configGated, NULL, "gated" }, + { "Novell", "Install the Novell client/server demo package", + dmenuVarCheck, configNovell, NULL, "novell" }, { "Ntpdate", "Select a clock-syncronization server", dmenuVarCheck, dmenuSubmenu, NULL, &MenuNTP, '[', 'X', ']', (int)"ntpdate" }, { "Routed", "Set flags for routed (default: -q)", diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h index 1c18ba0..81a3831 100644 --- a/usr.sbin/sade/sade.h +++ b/usr.sbin/sade/sade.h @@ -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.42.2.58 1996/06/17 21:57:54 jkh Exp $ + * $Id: sysinstall.h,v 1.65 1996/06/29 02:22:48 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -117,6 +117,7 @@ #define VAR_NFS_SECURE "nfsSecure" #define VAR_NFS_SERVER "nfs_server" #define VAR_NO_CONFIRM "noConfirm" +#define VAR_NOVELL "novell" #define VAR_NTPDATE "ntpDate" #define VAR_PCNFSD "pcnfsd" #define VAR_PKG_TMPDIR "PKG_TMPDIR" @@ -364,6 +365,11 @@ extern int configSaverTimeout(dialogMenuItem *self); extern int configNTP(dialogMenuItem *self); extern int configXFree86(dialogMenuItem *self); extern int configRoutedFlags(dialogMenuItem *self); +extern int configGated(dialogMenuItem *self); +extern int configSamba(dialogMenuItem *self); +extern int configPCNFSD(dialogMenuItem *self); +extern int configNFSServer(dialogMenuItem *self); +extern int configNovell(dialogMenuItem *self); /* crc.c */ extern int crc(int, unsigned long *, unsigned long *); @@ -470,11 +476,6 @@ extern int installFilesystems(dialogMenuItem *self); extern int installVarDefaults(dialogMenuItem *self); extern Boolean copySelf(void); -/* installFinal.c */ -extern int configGated(dialogMenuItem *self); -extern int configSamba(dialogMenuItem *self); -extern int configPCNFSD(dialogMenuItem *self); -extern int configNFSServer(dialogMenuItem *self); /* label.c */ extern int diskLabelEditor(dialogMenuItem *self); |