Magellan Linux

Annotation of /trunk/installer/guification.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1015 - (hide annotations) (download) (as text)
Sun May 30 17:33:55 2010 UTC (13 years, 11 months ago) by niro
File MIME type: application/x-sh
File size: 3662 byte(s)
-fixed header
-make use of debug() function
1 niro 719 #! /bin/bash
2 niro 1015 # $Id$
3 niro 719
4     # helper scripts
5 niro 1015 source include/functions.sh
6 niro 773 source include/hwdetection.sh
7 niro 719
8     # gui
9     source gtk-gui/common.sh
10     source gtk-gui/locales.sh
11     source gtk-gui/networking.sh
12     source gtk-gui/diskpartition.sh
13     source gtk-gui/usermanagement.sh
14 niro 768 source gtk-gui/install.sh
15 niro 719
16 niro 768 # install root
17     INSTALL_ROOT="/mnt/magellan"
18    
19 niro 719 # setup if needed sudo
20     sudo=""
21     if [[ $(id -u) != 0 ]]
22     then
23     SUDO=yes
24     export sudo="sudo"
25     fi
26    
27     rundialog()
28     {
29     local i
30    
31     eval $(gtkdialog --program="$1")
32    
33     # # export retvals automatically without RETVAL_ tag
34     # for i in $(set | grep RETVAL_ | cut -d= -f1)
35     # do
36     # export $(echo ${i} | sed "s:RETVAL_::")
37     # done
38     }
39     export -f rundialog
40    
41     #### Helpers ####
42     ##
43     ## <text> -> center
44     ## <text xalign=0> -> left
45     ## <text xalign=2> -> right
46     ##
47     ## <list selection-mode="0"> -> no selection allowed; only default value
48     ## <list selection-mode="1"> -> only one item can be selected; unselect allowed
49     ## <list selection-mode="2"> -> only one item can be selected; no unselect allowed
50     ## <list selection-mode="3"> -> multiple selections allowed
51     ##
52     #################
53    
54    
55     #################################
56     #### Guification starts here ####
57     #################################
58    
59 niro 768 # # # start Xnest
60     # # Xnest :2 -ac -geometry 800x600 +kb &
61     # # # or start a full X11
62     # # #X :2 &
63     # # export DISPLAY=:2
64     # #
65     # # # start openbox as windowmanager
66     # # export XDG_CONFIG_DIR=/etc/xdg
67     # # export XDG_DATA_DIR=/usr/share
68     # # sleep 1
69     # # exec openbox &
70 niro 719
71    
72     # set a reasonable background
73 niro 772 sleep 0.1; fbsetbg -f data/background.png
74 niro 719
75    
76     # start the program
77     rundialog WELCOME
78     #
79     main_locales
80 niro 1015 debug "RECEIVED: TIMEZONE_REGION='${TIMEZONE_REGION}'"
81     debug "RECEIVED: TIMEZONE_LOCATION='${TIMEZONE_LOCATION}'"
82     debug "RECEIVED: LOCALE_ALL='${LOCALE_ALL}'"
83     debug "RECEIVED: LOCALE='${LOCALE}'"
84 niro 719
85     main_networking
86 niro 1015 debug "RECEIVED: NETWORK_HOSTNAME='${NETWORK_HOSTNAME}'"
87     debug "RECEIVED: NETWORK_DOMAIN='${NETWORK_DOMAIN}'"
88     debug "RECEIVED: NETWORK_NIC='${NETWORK_NIC}'"
89     debug "RECEIVED: NETWORK_METHOD='${NETWORK_METHOD}'"
90     debug "RECEIVED: NETWORK_IP='${NETWORK_IP}'"
91     debug "RECEIVED: NETWORK_NETMASK='${NETWORK_NETMASK}'"
92     debug "RECEIVED: NETWORK_BROADCAST='${NETWORK_BROADCAST}'"
93     debug "RECEIVED: NETWORK_GATEWAY='${NETWORK_GATEWAY}'"
94     debug "RECEIVED: NETWORK_NAMESERVER='${NETWORK_NAMESERVER}'"
95 niro 719
96     main_diskpartition
97 niro 1015 debug "RECEIVED: PARTITION_DISK_SETUP='${PARTITION_DISK_SETUP}'"
98     debug "RECEIVED: PARTITION_DISK_ROOT='${PARTITION_DISK_ROOT}'"
99     debug "RECEIVED: PARTITION_FS_ROOT='${PARTITION_FS_ROOT}'"
100     debug "RECEIVED: PARTITION_DISK_BOOT='${PARTITION_DISK_BOOT}'"
101     debug "RECEIVED: PARTITION_FS_BOOT='${PARTITION_DISK_BOOT}'"
102     debug "RECEIVED: PARTITION_DISK_HOME='${PARTITION_DISK_HOME}'"
103     debug "RECEIVED: PARTITION_FS_HOME='${PARTITION_FS_HOME}'"
104     debug "RECEIVED: PARTITION_DISK_TMP='${PARTITION_DISK_TMP}'"
105     debug "RECEIVED: PARTITION_FS_TMP='${PARTITION_FS_TMP}'"
106     debug "RECEIVED: PARTITION_DISK_USER='${PARTITION_DISK_USER}'"
107     debug "RECEIVED: PARTITION_FS_USER='${PARTITION_FS_USER}'"
108     debug "RECEIVED: PARTITION_DISK_VAR='${PARTITION_DISK_VAR}'"
109     debug "RECEIVED: PARTITION_FS_VAR='${PARTITION_FS_VAR}'"
110     debug "RECEIVED: PARTITION_DISK_SVR='${PARTITION_DISK_SVR}'"
111     debug "RECEIVED: PARTITION_FS_SVR='${PARTITION_FS_SVR}'"
112     debug "RECEIVED: PARTITION_DISK_OPT='${PARTITION_DISK_OPT}'"
113     debug "RECEIVED: PARTITION_FS_OPT='${PARTITION_FS_OPT}'"
114     debug "RECEIVED: PARTITION_DISK_SWAP='${PARTITION_DISK_SWAP}'"
115     debug "RECEIVED: PARTITION_FS_SWAP='${PARTITION_DISK_SWAP}'"
116 niro 719
117     main_usermanagement
118 niro 1015 debug "RECEIVED: ROOT_PASSWORD='${ROOT_PASSWORD}'"
119     debug "RECEIVED: USER_NAME='${USER_NAME}'"
120     debug "RECEIVED: USER_PASSWORD='${USER_PASSWORD}'"
121 niro 719
122 niro 768 main_install
123    
124     # end of everything
125     rundialog FINISH
126    
127 niro 719 exit 0

Properties

Name Value
svn:executable *