Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/finalconfig
| Show All 30 Lines | |||||
| . $BSDCFG_SHARE/common.subr || exit 1 | . $BSDCFG_SHARE/common.subr || exit 1 | ||||
| : ${BSDDIALOG_OK=0} | : ${BSDDIALOG_OK=0} | ||||
| while true; do | while true; do | ||||
| exec 5>&1 | exec 5>&1 | ||||
| REVISIT=$(bsddialog --backtitle "$OSNAME Installer" \ | REVISIT=$(bsddialog --backtitle "$OSNAME Installer" \ | ||||
| --title "Final Configuration" --ok-label "Select" \ | --title "Final Configuration" --ok-label "Select" \ | ||||
| --cancel-label "Finish" --default-no --menu \ | --no-cancel --menu \ | ||||
| "Setup of your $OSNAME system is nearly complete. You can now modify your configuration choices. After this screen, you will have an opportunity to make more complex changes using a shell." 0 0 0 \ | "Setup of your $OSNAME system is nearly complete. You can now modify your configuration choices. After this screen, you will have an opportunity to make more complex changes using a shell." 0 0 0 \ | ||||
| "Finish" "Apply configuration and exit installer" \ | |||||
| "Add User" "Add a user to the system" \ | "Add User" "Add a user to the system" \ | ||||
| "Root Password" "Change root password" \ | "Root Password" "Change root password" \ | ||||
| "Hostname" "Set system hostname" \ | "Hostname" "Set system hostname" \ | ||||
| "Network" "Networking configuration" \ | "Network" "Networking configuration" \ | ||||
| "Services" "Set daemons to run on startup" \ | "Services" "Set daemons to run on startup" \ | ||||
| "System Hardening" "Set security options" \ | "System Hardening" "Set security options" \ | ||||
| "Time Zone" "Set system timezone" \ | "Time Zone" "Set system timezone" \ | ||||
| "Handbook" "Install $OSNAME Handbook (requires network)" 2>&1 1>&5) | "Handbook" "Install $OSNAME Handbook (requires network)" 2>&1 1>&5) | ||||
| retval=$? | retval=$? | ||||
| exec 5>&- | exec 5>&- | ||||
| if [ $retval -ne $BSDDIALOG_OK ]; then | if [ $retval -ne $BSDDIALOG_OK ]; then | ||||
| break | break | ||||
| fi | fi | ||||
| case "$REVISIT" in | case "$REVISIT" in | ||||
| "Finish") | |||||
| break | |||||
| ;; | |||||
| "Add User") | "Add User") | ||||
| bsdinstall adduser | bsdinstall adduser | ||||
| ;; | ;; | ||||
| "Root Password") | "Root Password") | ||||
| bsdinstall rootpass | bsdinstall rootpass | ||||
| ;; | ;; | ||||
| "Hostname") | "Hostname") | ||||
| bsdinstall hostname | bsdinstall hostname | ||||
| Show All 18 Lines | |||||