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