1995-01-14 13:34:37 +00:00
|
|
|
#!/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!).
|
|
|
|
#
|
1995-02-03 00:42:27 +00:00
|
|
|
# $Id: setup.sh,v 1.4 1995/02/02 20:46:40 jkh Exp $
|
1995-01-14 13:34:37 +00:00
|
|
|
|
|
|
|
# Grab the miscellaneous functions.
|
1995-01-28 01:18:44 +00:00
|
|
|
. /stand/scripts/miscfuncs.sh
|
1995-01-14 13:34:37 +00:00
|
|
|
|
|
|
|
setup()
|
|
|
|
{
|
1995-02-02 20:46:40 +00:00
|
|
|
DONE="no"
|
|
|
|
while [ "${DONE}" = "no" ]; do
|
1995-01-14 13:34:37 +00:00
|
|
|
dialog --title "Configuration Menu" --menu \
|
|
|
|
"Configure your system for basic single user, network or\n\
|
1995-02-02 08:31:38 +00:00
|
|
|
development workstation usage. Please select one of the\n\
|
1995-01-14 13:34:37 +00:00
|
|
|
following options. When you are finished setting up your\n\
|
1995-02-02 20:46:40 +00:00
|
|
|
system, select \"done\". To invoke this configuration tool\n\
|
1995-01-28 01:18:44 +00:00
|
|
|
again, type \`/stand/scripts/setup.sh\'." -1 -1 5 \
|
1995-01-14 13:34:37 +00:00
|
|
|
"tzsetup" "Configure your system's time zone" \
|
|
|
|
"network" "Configure basic networking parameters" \
|
|
|
|
"user" "Add a user name for yourself to the system" \
|
1995-02-02 20:46:40 +00:00
|
|
|
"guest" "Add a default user \"guest\"" \
|
1995-01-14 13:34:37 +00:00
|
|
|
"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)
|
1995-02-03 00:42:27 +00:00
|
|
|
INTERFACE=""
|
1995-01-14 13:34:37 +00:00
|
|
|
network_setup
|
|
|
|
;;
|
|
|
|
|
|
|
|
user)
|
1995-01-28 01:18:44 +00:00
|
|
|
sh /stand/scripts/adduser.sh -i
|
1995-01-14 13:34:37 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
guest)
|
1995-01-28 01:18:44 +00:00
|
|
|
sh /stand/scripts/adduser.sh
|
1995-01-14 13:34:37 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
done)
|
|
|
|
DONE="yes"
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
not_supported
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
}
|