Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1009 - (hide annotations) (download) (as text)
Sun May 30 17:32:35 2010 UTC (13 years, 11 months ago) by niro
File MIME type: application/x-sh
File size: 4642 byte(s)
-fixed header
-added keep-as-is support
-make use of debug() function
1 niro 1009 # $Id$
2 niro 770
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 niro 773 # <input> include/bootstrap-wrapper.sh </input>
20 niro 770 # <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 niro 773 # <input> include/bootstrap-wrapper.sh download_stage1</input>
42 niro 770 # <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 niro 773 # <input> include/bootstrap-wrapper.sh download_stage2</input>
64 niro 770 # <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 niro 773 # <input> include/bootstrap-wrapper.sh install_stage1</input>
86 niro 770 # <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 niro 772 <input file>data/header.png</input>
97 niro 770 </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 niro 773 <input> include/bootstrap-wrapper.sh</input>
108 niro 770 <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 niro 772 <input file>data/header.png</input>
119 niro 770 </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 niro 773 <input> include/prepare_disks.sh --format </input>
130 niro 770 <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 niro 772 <input file>data/header.png</input>
142 niro 770 </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 niro 772 <input file>data/header.png</input>
166 niro 770 </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 niro 773 <input> include/prepare_bootloader.sh </input>
177 niro 770 <action type="exit">Ready</action>
178     </progressbar>
179     </vbox>
180     </window>
181     '
182    
183     system_setup()
184     {
185 niro 773 include/prepare_auth.sh
186 niro 770 echo 25
187    
188 niro 773 include/prepare_networking.sh
189 niro 770 echo 50
190    
191 niro 773 include/prepare_fstab.sh
192 niro 770 echo 75
193    
194 niro 773 include/prepare_initrd.sh
195 niro 770 echo 100
196     }
197     export -f system_setup
198    
199     main_install()
200     {
201     rundialog FORMAT_DISKS
202 niro 773 include/prepare_disks.sh --mount
203 niro 770
204     rundialog INSTALL_STAGE2
205     rundialog SYSTEM_SETUP
206     rundialog INSTALL_BOOTLOADER
207    
208 niro 773 include/prepare_disks.sh --umount
209 niro 770 }