Magellan Linux

Contents of /trunk/installer/gtk-gui/install.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 772 - (show annotations) (download) (as text)
Wed Sep 24 10:44:47 2008 UTC (15 years, 7 months ago) by niro
File MIME type: application/x-sh
File size: 4641 byte(s)
-moved images into data/ directory

1 # $Header: /home/cvsd/magellan-cvs/magellan-src/installer/gtk-gui/install.sh,v 1.2 2008-09-24 10:44:21 niro Exp $
2
3 # export SHOW_BOOTSTRAP='
4 # <window title="Bootstrap" icon-name="gtk-preferences" window_position="1" resizable="true">
5 # <vbox>
6 # <pixmap>
7 # <input file>header.png</input>
8 # </pixmap>
9 # <hbox spacing="160">
10 # <pixmap>
11 # <input file stock="gtk-preferences"></input>
12 # </pixmap>
13 # <text>
14 # <label>Installing system</label>
15 # </text>
16 # </hbox>
17 # <progressbar>
18 # <label>Installing...</label>
19 # <input> bootstrap-wrapper.sh </input>
20 # <action type="exit">Ready</action>
21 # </progressbar>
22 # </vbox>
23 # </window>
24 # '
25 #
26 # export DOWNLOAD_STAGE1='
27 # <window title="Installation" icon-name="gtk-preferences" window_position="1" resizable="true">
28 # <vbox>
29 # <pixmap>
30 # <input file>header.png</input>
31 # </pixmap>
32 # <hbox spacing="160">
33 # <pixmap>
34 # <input file stock="gtk-preferences"></input>
35 # </pixmap>
36 # <text>
37 # <label>Downloading Stage1</label>
38 # </text>
39 # </hbox>
40 # <progressbar>
41 # <input> bootstrap-wrapper.sh download_stage1</input>
42 # <action type="exit">Ready</action>
43 # </progressbar>
44 # </vbox>
45 # </window>
46 # '
47 #
48 # export DOWNLOAD_STAGE2='
49 # <window title="Installation" icon-name="gtk-preferences" window_position="1" resizable="true">
50 # <vbox>
51 # <pixmap>
52 # <input file>header.png</input>
53 # </pixmap>
54 # <hbox spacing="160">
55 # <pixmap>
56 # <input file stock="gtk-preferences"></input>
57 # </pixmap>
58 # <text>
59 # <label>Downloading Stage2</label>
60 # </text>
61 # </hbox>
62 # <progressbar>
63 # <input> bootstrap-wrapper.sh download_stage2</input>
64 # <action type="exit">Ready</action>
65 # </progressbar>
66 # </vbox>
67 # </window>
68 # '
69 #
70 # export INSTALL_STAGE1='
71 # <window title="Installation" icon-name="gtk-preferences" window_position="1" resizable="true">
72 # <vbox>
73 # <pixmap>
74 # <input file>header.png</input>
75 # </pixmap>
76 # <hbox spacing="160">
77 # <pixmap>
78 # <input file stock="gtk-preferences"></input>
79 # </pixmap>
80 # <text>
81 # <label>Installing Stage1</label>
82 # </text>
83 # </hbox>
84 # <progressbar>
85 # <input> bootstrap-wrapper.sh install_stage1</input>
86 # <action type="exit">Ready</action>
87 # </progressbar>
88 # </vbox>
89 # </window>
90 # '
91
92 export INSTALL_STAGE2='
93 <window title="Installation" icon-name="gtk-preferences" window_position="1" resizable="true">
94 <vbox>
95 <pixmap>
96 <input file>data/header.png</input>
97 </pixmap>
98 <hbox spacing="160">
99 <pixmap>
100 <input file stock="gtk-preferences"></input>
101 </pixmap>
102 <text>
103 <label>Installing Stage2</label>
104 </text>
105 </hbox>
106 <progressbar>
107 <input> bootstrap-wrapper.sh</input>
108 <action type="exit">Ready</action>
109 </progressbar>
110 </vbox>
111 </window>
112 '
113
114 export FORMAT_DISKS='
115 <window title="Installation" icon-name="gtk-preferences" window_position="1" resizable="true">
116 <vbox>
117 <pixmap>
118 <input file>data/header.png</input>
119 </pixmap>
120 <hbox spacing="160">
121 <pixmap>
122 <input file stock="gtk-preferences"></input>
123 </pixmap>
124 <text>
125 <label>Formating disks</label>
126 </text>
127 </hbox>
128 <progressbar>
129 <input> prepare_disks.sh -f -p</input>
130 <action type="exit">Ready</action>
131 </progressbar>
132 </vbox>
133 </window>
134 '
135
136 # bootloader
137 export SYSTEM_SETUP='
138 <window title="Bootstrap" icon-name="gtk-preferences" window_position="1" resizable="true">
139 <vbox>
140 <pixmap>
141 <input file>data/header.png</input>
142 </pixmap>
143 <hbox spacing="160">
144 <pixmap>
145 <input file stock="gtk-preferences"></input>
146 </pixmap>
147 <text>
148 <label>Installing</label>
149 </text>
150 </hbox>
151 <progressbar>
152 <label> Creating fstab ... </label>
153 <input> system_setup</input>
154 <action type="exit">Ready</action>
155 </progressbar>
156 </vbox>
157 </window>
158 '
159
160 # bootloader
161 export INSTALL_BOOTLOADER='
162 <window title="Bootstrap" icon-name="gtk-preferences" window_position="1" resizable="true">
163 <vbox>
164 <pixmap>
165 <input file>data/header.png</input>
166 </pixmap>
167 <hbox spacing="160">
168 <pixmap>
169 <input file stock="gtk-preferences"></input>
170 </pixmap>
171 <text>
172 <label> Installing Bootloader </label>
173 </text>
174 </hbox>
175 <progressbar>
176 <input> prepare_bootloader.sh </input>
177 <action type="exit">Ready</action>
178 </progressbar>
179 </vbox>
180 </window>
181 '
182
183 system_setup()
184 {
185 prepare_auth.sh
186 echo 25
187
188 prepare_networking.sh
189 echo 50
190
191 prepare_fstab.sh
192 echo 75
193
194 prepare_initrd.sh
195 echo 100
196 }
197 export -f system_setup
198
199 main_install()
200 {
201 rundialog FORMAT_DISKS
202 prepare_disks.sh --mount
203
204 rundialog INSTALL_STAGE2
205 rundialog SYSTEM_SETUP
206 rundialog INSTALL_BOOTLOADER
207
208 prepare_disks.sh --umount
209 }