Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/auto
Show First 20 Lines • Show All 389 Lines • ▼ Show 20 Lines | |||||
bsdinstall time | bsdinstall time | ||||
bsdinstall services | bsdinstall services | ||||
bsdinstall hardening | bsdinstall hardening | ||||
dialog --backtitle "FreeBSD Installer" --title "Add User Accounts" --yesno \ | dialog --backtitle "FreeBSD Installer" --title "Add User Accounts" --yesno \ | ||||
"Would you like to add users to the installed system now?" 0 0 && \ | "Would you like to add users to the installed system now?" 0 0 && \ | ||||
bsdinstall adduser | bsdinstall adduser | ||||
dialog --backtitle "FreeBSD Installer" --title "Install Desktop" --yesno \ | |||||
"Would you like to install a desktop environment now?" 0 0 && \ | |||||
bsdinstall pkginstall | |||||
finalconfig() { | finalconfig() { | ||||
exec 3>&1 | exec 3>&1 | ||||
REVISIT=$(dialog --backtitle "FreeBSD Installer" \ | REVISIT=$(dialog --backtitle "FreeBSD Installer" \ | ||||
--title "Final Configuration" --no-cancel --menu \ | --title "Final Configuration" --no-cancel --menu \ | ||||
"Setup of your FreeBSD 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 FreeBSD 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 \ | ||||
"Exit" "Apply configuration and exit installer" \ | "Exit" "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" \ | ||||
"Desktop" "Install Desktop" \ | |||||
"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 FreeBSD Handbook (requires network)" 2>&1 1>&3) | "Handbook" "Install FreeBSD Handbook (requires network)" 2>&1 1>&3) | ||||
exec 3>&- | exec 3>&- | ||||
case "$REVISIT" in | case "$REVISIT" in | ||||
"Add User") | "Add User") | ||||
bsdinstall adduser | bsdinstall adduser | ||||
finalconfig | finalconfig | ||||
;; | ;; | ||||
"Root Password") | "Root Password") | ||||
bsdinstall rootpass | bsdinstall rootpass | ||||
finalconfig | |||||
;; | |||||
"Desktop") | |||||
bsdinstall pkginstall | |||||
finalconfig | finalconfig | ||||
;; | ;; | ||||
"Hostname") | "Hostname") | ||||
bsdinstall hostname | bsdinstall hostname | ||||
finalconfig | finalconfig | ||||
;; | ;; | ||||
"Network") | "Network") | ||||
bsdinstall netconfig | bsdinstall netconfig | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |