diff options
author | jkh <jkh@FreeBSD.org> | 1996-12-09 06:02:36 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-12-09 06:02:36 +0000 |
commit | c493900657fe7c2b8b5f9f5cb441086d10c18467 (patch) | |
tree | c397ac2f0ca96773e57d858dac092400ce2f74d9 /release/sysinstall/menus.c | |
parent | 74990d366dbe0839d7499dfbd9fd48630e07aa5c (diff) | |
download | FreeBSD-src-c493900657fe7c2b8b5f9f5cb441086d10c18467.zip FreeBSD-src-c493900657fe7c2b8b5f9f5cb441086d10c18467.tar.gz |
Add Joerg's user management screen for David Nugent's pw(8) program, something
which will also need to be brought in before this screen will work.
Add some commentary about how the slip startup code is bogus.
Steal Joerg's loop for more properly closing all files and graft it into
the EHS startup. My loop was functional but more bogus.
Diffstat (limited to 'release/sysinstall/menus.c')
-rw-r--r-- | release/sysinstall/menus.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/release/sysinstall/menus.c b/release/sysinstall/menus.c index dc20fcf..348c6b4 100644 --- a/release/sysinstall/menus.c +++ b/release/sysinstall/menus.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: menus.c,v 1.98 1996/11/29 23:52:20 jkh Exp $ + * $Id: menus.c,v 1.99 1996/12/08 12:27:57 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -207,8 +207,7 @@ DMenu MenuIndex = { "Leave the index page by selecting Cancel [TAB-ENTER].", "Use PageUp or PageDown to move through this menu faster!", NULL, - { { "Add User", "Add users to the system.", NULL, dmenuSystemCommand, NULL, "adduser -config_create ; adduser -s" }, - { "Anon FTP", "Configure anonymous FTP logins.", dmenuVarCheck, configAnonFTP, NULL, "anon_ftp" }, + { { "Anon FTP", "Configure anonymous FTP logins.", dmenuVarCheck, configAnonFTP, NULL, "anon_ftp" }, { "Commit", "Commit any pending actions (dangerous!)", NULL, installCustomCommit }, { "Console settings", "Customize system console behavior.", NULL, dmenuSubmenu, NULL, &MenuSyscons }, { "Configure", "The system configuration menu.", NULL, dmenuSubmenu, NULL, &MenuConfigure }, @@ -269,6 +268,7 @@ DMenu MenuIndex = { { "Time Zone", "Set the system's time zone.", NULL, dmenuSystemCommand, NULL, "rm -f /etc/wall_cmos_clock /etc/localtime; tzsetup" }, { "Upgrade", "Upgrade an existing system.", NULL, installUpgrade }, { "Usage", "Quick start - How to use this menu system.", NULL, dmenuDisplayFile, NULL, "usage" }, + { "User Management", "Add user and group information.", NULL, dmenuSubmenu, NULL, &MenuUsermgmt }, { "WEB Server", "Configure host as a WWW server.", dmenuVarCheck, configApache, NULL, "apache_httpd" }, { "XFree86, Fonts", "XFree86 Font selection menu.", NULL, dmenuSubmenu, NULL, &MenuXF86SelectFonts }, { "XFree86, Server", "XFree86 Server selection menu.", NULL, dmenuSubmenu, NULL, &MenuXF86SelectServer }, @@ -1008,8 +1008,8 @@ DMenu MenuConfigure = { "software not provided in the base distributions.", "Press F1 for more information on these options", "configure", - { { "1 Add User", "Add users to the system", - NULL, dmenuSystemCommand, NULL, "adduser -config_create ; adduser -s" }, + { { "1 User Management", "Add user and group information", + NULL, dmenuSubmenu, NULL, &MenuUsermgmt }, { "2 Console", "Customize system console behavior", NULL, dmenuSubmenu, NULL, &MenuSyscons }, { "3 Time Zone", "Set which time zone you're in", @@ -1268,3 +1268,16 @@ DMenu MenuSysconsFont = { "font8x8=koi8-r-8x8,font8x14=koi8-r-8x14,font8x16=koi8-r-8x16" }, { NULL } }, }; + +DMenu MenuUsermgmt = { + DMENU_NORMAL_TYPE, + "User and group management", + "The submenus here allow to manipulate user groups and\n" + "login accounts.\n", + "Configure your user groups and users", + NULL, + { { "Add group", "Add a new user group to the system.", NULL, userAddGroup }, + { "Add user", "Add a new user to the system.", NULL, userAddUser }, + { "Exit", "Exit this menu (returning to previous)", NULL, dmenuExit }, + { NULL } }, +}; |