Changeset 9e560f7


Ignore:
Timestamp:
11/25/13 08:26:27 (14 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1
Children:
ecb2411
Parents:
62ae807
Message:

Improve the text-installer front-end, add a new "edit" menu, and make
the install the first option, so you can just hit "Enter" the whole way
through for defaults.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-installdialog/pc-installdialog.sh

    r85cc118 r9e560f7  
    604604} 
    605605 
    606 start_menu_loop() 
     606start_edit_menu_loop() 
    607607{ 
    608608 
    609609  while : 
    610610  do 
    611     dialog --title "PC-BSD Text Install" --menu "Please select from the following options:" 18 40 10 wizard "Run install wizard" disk "Change disk ($SYSDISK)" zfs "Change ZFS layout" network "Change networking" view "View install script" edit "Edit install script" install "Start the installation" quit "Quit install wizard" 2>/tmp/answer 
     611    dialog --title "PC-BSD Text Install - Edit Menu" --menu "Please select from the following options:" 18 40 10 disk "Change disk ($SYSDISK)" zfs "Change ZFS layout" network "Change networking" view "View install script" edit "Edit install script" back "Back to main menu" 2>/tmp/answer 
    612612    if [ $? -ne 0 ] ; then break ; fi 
    613613 
     
    615615 
    616616    case $ANS in 
    617      wizard) start_full_wizard 
    618              rtn 
    619              ;; 
    620617       disk) change_disk_selection 
    621618             rtn 
     
    631628             rtn 
    632629             ;; 
     630       back) break ;; 
     631          *) ;; 
     632    esac 
     633  done 
     634 
     635} 
     636 
     637start_menu_loop() 
     638{ 
     639 
     640  while : 
     641  do 
     642    dialog --title "PC-BSD Text Install" --menu "Please select from the following options:" 18 40 10 install "Start the installation" wizard "Re-run install wizard" edit "Edit install options" quit "Quit install wizard" 2>/tmp/answer 
     643    if [ $? -ne 0 ] ; then break ; fi 
     644 
     645    ANS="`cat /tmp/answer`" 
     646 
     647    case $ANS in 
     648     wizard) start_full_wizard 
     649             rtn 
     650             ;; 
     651       edit) start_edit_menu_loop 
     652             ;; 
    633653    install) echo "This will begin the installation, continue?" 
    634654             echo -e "(y/n)\c" 
Note: See TracChangeset for help on using the changeset viewer.