Ignore:
Timestamp:
10/15/13 12:28:43 (10 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
59f014c4
Parents:
0843d04d
Message:

Add ability to boot into text-install mode, and add new dialog menu options
to walk through the install wizard / edit / install menus

File:
1 edited

Legend:

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

    r1620346 rb2dabfa  
    11#!/bin/sh 
    22# PC-BSD System Install Menu 
    3 # Copyright 2007 PC-BSD Software 
     3# Copyright 2013 PC-BSD Software 
    44# http://www.pcbsd.com 
    55# Author: Kris Moore 
    66########################################################################### 
     7 
     8. /root/functions.sh 
     9 
     10text_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} 
    743 
    844DRES="1024x768"  
     
    1248do 
    1349 
    14 dialog --title "PC-BSD Installation Menu" --menu "Please select from the following options:" 20 55 15 install "Start graphical install" vesa "Start graphical install (VESA)" utility "System Utilities" reboot "Reboot the system" 2>/tmp/answer 
     50dialog --title "PC-BSD Installation Menu" --menu "Please select from the following options:" 20 55 15 install "Start text install" xorg "Start graphical install" vesa "Start graphical install (VESA)" utility "System Utilities" reboot "Reboot the system" 2>/tmp/answer 
    1551 
    1652ANS="`cat /tmp/answer`" 
    1753 
    1854case $ANS in 
    19     install) echo "Starting PC-BSD System Installer.. Please wait.." 
     55    install) text_install_menu ;; 
     56    xinstall) echo "Starting PC-BSD System Installer.. Please wait.." 
    2057             startx 2>/tmp/Xerrors ;; 
    2158       vesa) echo "Starting PC-BSD System Installer.. Please wait.." 
Note: See TracChangeset for help on using the changeset viewer.