source: overlays/install-overlay/root/PCBSDtext.sh @ b2dabfa

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since b2dabfa was b2dabfa, checked in by Kris Moore <kris@…>, 10 months ago

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

  • Property mode set to 100755
File size: 2.0 KB
Line 
1#!/bin/sh
2# PC-BSD System Install Menu
3# Copyright 2013 PC-BSD Software
4# http://www.pcbsd.com
5# Author: Kris Moore
6###########################################################################
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}
43
44DRES="1024x768" 
45
46while
47i="1"
48do
49
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
51
52ANS="`cat /tmp/answer`"
53
54case $ANS in
55    install) text_install_menu ;;
56    xinstall) echo "Starting PC-BSD System Installer.. Please wait.."
57             startx 2>/tmp/Xerrors ;;
58       vesa) echo "Starting PC-BSD System Installer.. Please wait.."
59 cp /root/cardDetect/XF86Config.compat /etc/X11/xorg.conf
60             startx 2>/tmp/Xerrors ;;
61    utility) /root/PCBSDUtil.sh
62              clear ;;
63     reboot)  shutdown -r now ;;
64          *) ;;
65esac
66
67
68
69done
70
71
Note: See TracBrowser for help on using the repository browser.