1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00
freebsd/release/scripts/setup.sh
Jordan K. Hubbard 24c120144b Clean these up a bunch more - gee I'm glad I do these snapshots, they uncover
*so many problems*.. Too bad the snaps themselves don't get made as a
consequence.. :-)

Bump the date forward Yet Another Day.  David has some changes he wants to
see rolled in, so I guess we're down for Feb 2nd as the snap date!
1995-02-02 08:31:38 +00:00

66 lines
1.6 KiB
Bash

#!/stand/sh
#
# Written: November 11th, 1994
# Copyright (C) 1994 by Jordan K. Hubbard
#
# Permission to copy or use this software for any purpose is granted
# provided that this message stay intact, and at this location (e.g. no
# putting your name on top after doing something trivial like reindenting
# it, just to make it look like you wrote it!).
#
# $Id: setup.sh,v 1.2 1995/01/28 01:18:44 jkh Exp $
# Grab the miscellaneous functions.
. /stand/scripts/miscfuncs.sh
setup()
{
DONE=""
while [ "${DONE}" = "" ]; do
dialog --title "Configuration Menu" --menu \
"Configure your system for basic single user, network or\n\
development workstation usage. Please select one of the\n\
following options. When you are finished setting up your\n\
system, select \"done\". To invoke this configuration tool \n\
again, type \`/stand/scripts/setup.sh\'." -1 -1 5 \
"tzsetup" "Configure your system's time zone" \
"network" "Configure basic networking parameters" \
"user" "Add a user name for yourself to the system" \
"guest" "Add a default user \"guest\" \
"packages" "Install additional optional software on your system." \
"ports" "Enable use of the ports collection from CD or fileserver." \
"done" "Exit from setup." 2> ${TMP}/menu.tmp.$$
RETVAL=$?
CHOICE=`cat ${TMP}/menu.tmp.$$`
rm -f ${TMP}/menu.tmp.$$
if ! handle_rval ${RETVAL}; then exit 0; fi
case ${CHOICE} in
tzsetup)
dialog --clear
sh /stand/tzsetup
dialog --clear
;;
network)
network_setup
;;
user)
sh /stand/scripts/adduser.sh -i
;;
guest)
sh /stand/scripts/adduser.sh
;;
done)
DONE="yes"
;;
*)
not_supported
esac
done
}