Ignore:
Timestamp:
10/16/13 07:32:44 (14 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
bdd2401
Parents:
59d5019
Message:

Update text-installer with a more fleshed out menu, letting us do
some new things such as:

  • go back and change disk parameters before installation.
  • View install script
  • Edit install script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • overlays/install-overlay/root/PCBSDtext.sh

    rb2dabfa r26d931b  
    77 
    88. /root/functions.sh 
    9  
    10 text_install_menu() 
    11 { 
    12  
    13   while : 
    14   do 
    15     if [ -e "/tmp/sys-install.cfg" ] ; then 
    16       dialog --title "PC-BSD Text Install" --menu "Please select from the following options:" 20 55 15 wizard "Re-Run install wizard" edit "Edit install script" install "Start installation" back "Return to previous menu" 2>/tmp/answer 
    17     else 
    18       dialog --title "PC-BSD Text Install" --menu "Please select from the following options:" 20 55 15 wizard "Run install wizard" back "Return to previous menu" 2>/tmp/answer 
    19     fi 
    20  
    21     ANS="`cat /tmp/answer`" 
    22  
    23     case $ANS in 
    24      wizard) pc-installdialog 
    25              rtn 
    26              ;; 
    27        edit) vi /tmp/sys-install.cfg 
    28              rtn 
    29              ;; 
    30     install) echo "This will begin the installation, continue?" 
    31              echo -e "(y/n)\c" 
    32              read tmp 
    33              if [ "$tmp" = "y" -o "$tmp" = "Y" ] ; then 
    34                 pc-sysinstall -c /tmp/sys-install.cfg 
    35                 rtn 
    36              fi 
    37              ;; 
    38        back) break ;; 
    39           *) ;; 
    40     esac 
    41   done 
    42 } 
    439 
    4410DRES="1024x768"  
     
    5319 
    5420case $ANS in 
    55     install) text_install_menu ;; 
     21    install) /usr/local/bin/pc-installdialog ;; 
    5622    xinstall) echo "Starting PC-BSD System Installer.. Please wait.." 
    5723             startx 2>/tmp/Xerrors ;; 
Note: See TracChangeset for help on using the changeset viewer.