- fix startup
[enigma2-plugins.git] / networkwizard / src / networkwizard.xml
1 <wizard>
2                 <step id="welcome" nextstep="introduction">
3                         <text value="Welcome.\n\nIf you want to connect your Dreambox to the Internet, this wizard will guide you through the basic network setup of your Dreambox.\n\nPress OK to start configuring your network" />
4                         <code>
5 self["arrowdown"].moveTo(557, 232, 1)
6 self["arrowdown"].startMoving()
7 self["arrowup"].moveTo(800, 232, 1)
8 self["arrowup"].startMoving()
9 self["arrowup2"].moveTo(800, 320, 1)
10 self["arrowup2"].startMoving()
11 self["arrowup3"].moveTo(800, 320, 1)
12 self["arrowup3"].startMoving()
13 self["rc"].moveTo(500, 50, 1)
14 self["rc"].startMoving()
15                         </code>
16                 </step>
17
18                 <step id="introduction" >
19                         <text value="Use the up/down keys on your remote control to select an option. After that, press OK.\n\n\n\nConnect to the internet..." />
20                         <list>
21                                 <listentry caption="via LAN." step="conflan" />
22                                 <listentry caption="via wireless LAN." step="wlanstart" />
23                                 <listentry caption="Exit wizard and configure later manually" step="end" />
24                         </list>
25                         <code>
26 self["arrowup2"].moveTo(800, 320, 1)
27 self["arrowup2"].startMoving()
28 self["arrowdown"].moveTo(557, 200, 1)
29 self["arrowup"].moveTo(557, 355, 1)
30 self["arrowdown"].startMoving()
31 self["arrowup"].startMoving()
32 self["rc"].moveTo(500, 50, 1)
33 self["rc"].startMoving()
34                         </code>
35                 </step>
36
37                 <step id="conflan" nextstep="checklanstatusend">
38                         <text value="Please configure your LAN internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
39                         <config screen="AdapterSetup" module="NetworkSetup" args="0" type="ConfigList" />
40                         <code>
41 self.checkInterface('eth0')
42                         </code> 
43                         <code>
44 self["arrowup2"].moveTo(525, 320, 1)
45 self["arrowup2"].startMoving()
46 self["arrowup3"].moveTo(590, 320, 1)
47 self["arrowup3"].startMoving()
48 self["arrowdown"].moveTo(557, 200, 1)
49 self["arrowup"].moveTo(557, 355, 1)
50 self["arrowdown"].startMoving()
51 self["arrowup"].startMoving()
52 self["rc"].moveTo(500, 50, 1)
53 self["rc"].startMoving()
54                         </code>
55                         <code pos="after">
56 self.checkNetwork()
57                         </code> 
58                 </step>
59
60                 <step id="checklanstatusend" nextstep="end">
61                 <condition>
62 self.condition = (self.InterfaceState == True )
63                 </condition>
64                         <text value="Your Dreambox is now ready to use.\n\nYour LAN internet connection is working now.\n\nPlease press OK to continue." />
65                         <code>
66 self["arrowdown"].moveTo(557, 232, 1)
67 self["arrowdown"].startMoving()
68 self["arrowup"].moveTo(800, 232, 1)
69 self["arrowup"].startMoving()
70 self["arrowup2"].moveTo(800, 320, 1)
71 self["arrowup2"].startMoving()
72 self["arrowup3"].moveTo(800, 320, 1)
73 self["arrowup3"].startMoving()
74 self["rc"].moveTo(500, 50, 1)
75 self["rc"].startMoving()
76                         </code>
77                 </step>
78
79                 <step id="checklanstatusend">
80                 <condition>
81 self.condition = (self.InterfaceState == False )
82                 </condition>
83                         <text value="Your LAN internet connection is not working!\nPlease choose what you want to do next." />
84                         <code>
85 self["arrowdown"].moveTo(557, 232, 1)
86 self["arrowdown"].startMoving()
87 self["arrowup"].moveTo(800, 232, 1)
88 self["arrowup"].startMoving()
89 self["arrowup2"].moveTo(800, 320, 1)
90 self["arrowup2"].startMoving()
91 self["arrowup3"].moveTo(800, 320, 1)
92 self["arrowup3"].startMoving()
93 self["rc"].moveTo(500, 50, 1)
94 self["rc"].startMoving()
95                         </code>
96                         <list>
97                                 <listentry caption="Configure your LAN again" step="conflan" />
98                                 <listentry caption="Configure your wireless LAN" step="wlanstart" />
99                                 <listentry caption="Exit wizard and configure later manually" step="end" />
100                         </list>
101                 </step>
102
103                 <step id="wlanstart" nextstep="scanwlan">
104                         <text value="Please attach your Zydas ZD1211B or Ralink chipset compatibe WLAN USB Stick to your Dreambox and press OK to enable the built-in wireless network support" />
105                         <code>
106 self["arrowdown"].moveTo(557, 232, 1)
107 self["arrowdown"].startMoving()
108 self["arrowup"].moveTo(800, 232, 1)
109 self["arrowup"].startMoving()
110 self["rc"].moveTo(500, 50, 1)
111 self["rc"].startMoving()
112                         </code>
113                         <code pos="after">
114 self.checkInterface('wlan0')
115                         </code>         
116                 </step>
117
118                 <step id="scanwlan" nextstep="wlanconfig">
119                 <condition>
120 self.condition = (self.isInterfaceUp == True )
121                 </condition>
122                         <text value="Please select the wireless LAN network that you want to connect to.\n\nPlease press OK to continue." />
123                         <list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
124                         <code>
125 self["arrowup2"].moveTo(800, 320, 1)
126 self["arrowup2"].startMoving()
127 self["arrowdown"].moveTo(557, 200, 1)
128 self["arrowup"].moveTo(557, 355, 1)
129 self["arrowdown"].startMoving()
130 self["arrowup"].startMoving()
131 self["rc"].moveTo(500, 50, 1)
132 self["rc"].startMoving()
133                         </code>
134                         <code pos="after">
135 self.saveAccessPoint(self.ap)
136                         </code>
137                 </step>
138
139                 <step id="scanwlan">
140                 <condition>
141 self.condition = (self.isInterfaceUp == False )
142                 </condition>
143                         <text value="Your wireless LAN internet connection could not be started!\nHave you attached your USB WLAN Stick?\n\nPlease choose what you want to do next." />
144                         <list>
145                                 <listentry caption="Configure your wireless LAN again" step="wlanstart" />
146                                 <listentry caption="Configure your internal LAN" step="conflan" />
147                                 <listentry caption="Exit wizard and configure later manually" step="end" />
148                         </list>
149                         <code>
150 self["arrowup2"].moveTo(800, 320, 1)
151 self["arrowup2"].startMoving()
152 self["arrowdown"].moveTo(557, 200, 1)
153 self["arrowup"].moveTo(557, 355, 1)
154 self["arrowdown"].startMoving()
155 self["arrowup"].startMoving()
156 self["rc"].moveTo(500, 50, 1)
157 self["rc"].startMoving()
158                         </code>
159                         <code pos="after">
160 self.saveAccessPoint(self.ap)
161                         </code>
162                 </step>
163
164                 <step id="wlanconfig" nextstep="checkwlanstatusend" timeout="60" timeoutaction="selectnext">
165                         <text value="Please configure your wireless LAN internet connection by filling out the required values.\nWhen you are done, press OK to continue." />
166                         <config screen="AdapterSetup" module="NetworkSetup" args="1" type="ConfigList" />
167                         <code>
168 self["arrowup2"].moveTo(525, 320, 1)
169 self["arrowup2"].startMoving()
170 self["arrowup3"].moveTo(590, 320, 1)
171 self["arrowup3"].startMoving()
172 self["arrowdown"].moveTo(557, 200, 1)
173 self["arrowup"].moveTo(557, 355, 1)
174 self["arrowdown"].startMoving()
175 self["arrowup"].startMoving()
176 self["rc"].moveTo(500, 50, 1)
177 self["rc"].startMoving()
178                         </code>
179                         <code pos="after">
180 self.checkNetwork()
181                         </code> 
182                 </step>
183
184                 <step id="checkwlanstatusend" nextstep="end">
185                 <condition>
186 self.condition = (self.InterfaceState == True )
187                 </condition>
188                         <text value="Your Dreambox is now ready to use.\n\nYour wireless LAN internet connection is working now.\n\nPlease press OK to continue." />
189                         <code>
190 self["arrowdown"].moveTo(557, 232, 1)
191 self["arrowdown"].startMoving()
192 self["arrowup"].moveTo(800, 232, 1)
193 self["arrowup"].startMoving()
194 self["arrowup2"].moveTo(800, 320, 1)
195 self["arrowup2"].startMoving()
196 self["arrowup3"].moveTo(800, 320, 1)
197 self["arrowup3"].startMoving()
198 self["rc"].moveTo(500, 50, 1)
199 self["rc"].startMoving()
200                         </code>
201                 </step>
202
203                 <step id="checkwlanstatusend">
204                 <condition>
205 self.condition = (self.InterfaceState == False )
206                 </condition>
207                         <text value="Your wireless LAN internet connection is not working!\nPlease choose what you want to do next." />
208                         <code>
209 self["arrowup2"].moveTo(800, 320, 1)
210 self["arrowup2"].startMoving()
211 self["arrowdown"].moveTo(557, 200, 1)
212 self["arrowup"].moveTo(557, 355, 1)
213 self["arrowdown"].startMoving()
214 self["arrowup"].startMoving()
215 self["rc"].moveTo(500, 50, 1)
216 self["rc"].startMoving()
217                         </code>
218                         <list>
219                                 <listentry caption="Configure your wireless LAN again" step="wlanstart" />
220                                 <listentry caption="Restart your wireless interface" step="wlanrestart" />
221                                 <listentry caption="Configure your internal LAN" step="conflan" />
222                                 <listentry caption="Exit wizard and configure later manually" step="end" />
223                         </list>
224                 </step>
225
226                 <step id="wlanrestart" nextstep="checkwlanstatusend" timeout="3" timeoutaction="selectnext">
227                         <text value="Your network is restarting.\n\nPlease press OK to continue." />
228                         <code pos="after">
229 self.restartNetwork()
230                         </code> 
231                 </step>
232
233                 <step id="end">
234                         <text value="Thank you for using the wizard. Your Dreambox is now ready to use.\nPlease press OK to continue." />
235
236                 </step>
237 </wizard>
238
239