2 LuCI - Lua Configuration Interface
3 Copyright
2008 Steven Barth
<steven@midlink.org
>
4 Copyright
2008 Jo-Philipp Wich
<xm@leipzig.freifunk.net
>
6 Licensed under the Apache License, Version
2.0 (the
"License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-
2.0
18 <h2><a id=
"content" name=
"content"><%:Flash operations%
></a></h2>
20 <ul class=
"cbi-tabmenu">
21 <li class=
"cbi-tab"><a href=
"#"><%:Actions%
></a></li>
22 <li class=
"cbi-tab-disabled"><a href=
"<%=REQUEST_URI%>/backupfiles"><%:Configuration%
></a></li>
25 <fieldset class=
"cbi-section">
27 <fieldset class=
"cbi-section">
28 <legend><%:Backup / Restore%
></legend>
29 <form method=
"post" action=
"<%=REQUEST_URI%>" enctype=
"multipart/form-data">
30 <div class=
"cbi-section-descr"><%:Click
"Generate archive" to download a tar archive of the current configuration files. To reset the firmware to its initial state, click
"Perform reset" (only possible with squashfs images).%
></div>
31 <div class=
"cbi-section-node">
32 <div class=
"cbi-value<% if not reset_avail then %> cbi-value-last<% end %>">
33 <label class=
"cbi-value-title" for=
"image"><%:Download backup%
>:
</label>
34 <div class=
"cbi-value-field">
35 <input class=
"cbi-button cbi-button-apply" type=
"submit" name=
"backup" value=
"<%:Generate archive%>" />
38 <% if reset_avail then %
>
39 <div class=
"cbi-value cbi-value-last">
40 <label class=
"cbi-value-title"><%:Reset to defaults%
>:
</label>
41 <div class=
"cbi-value-field">
42 <input onclick=
"return confirm('<%:Really reset all changes?%>')" class=
"cbi-button cbi-button-reset" type=
"submit" name=
"reset" value=
"<%:Perform reset%>" />
48 <div class=
"cbi-section-descr"><%:To restore configuration files, you can upload a previously generated backup archive here.%
></div>
49 <div class=
"cbi-section-node">
50 <div class=
"cbi-value cbi-value-last">
51 <label class=
"cbi-value-title" for=
"archive"><%:Restore backup%
>:
</label>
52 <div class=
"cbi-value-field">
53 <input type=
"file" name=
"archive" id=
"archive" />
54 <input type=
"submit" class=
"cbi-button cbi-input-apply" name=
"restore" value=
"<%:Upload archive...%>" />
63 <fieldset class=
"cbi-section">
64 <legend><%:Flash new firmware image%
></legend>
65 <% if upgrade_avail then %
>
66 <form method=
"post" action=
"<%=REQUEST_URI%>" enctype=
"multipart/form-data">
67 <div class=
"cbi-section-descr"><%:Upload a sysupgrade-compatible image here to replace the running firmware. Check
"Keep settings" to retain the current configuration (requires an OpenWrt compatible firmware image).%
></div>
68 <div class=
"cbi-section-node">
69 <div class=
"cbi-value">
70 <label class=
"cbi-value-title" for=
"keep"><%:Keep settings%
>:
</label>
71 <div class=
"cbi-value-field">
72 <input type=
"checkbox" name=
"keep" id=
"keep" checked=
"checked" />
75 <div class=
"cbi-value cbi-value-last<% if image_invalid then %> cbi-value-error<% end %>">
76 <label class=
"cbi-value-title" for=
"image"><%:Image%
>:
</label>
77 <div class=
"cbi-value-field">
78 <input type=
"file" name=
"image" id=
"image" />
79 <input type=
"submit" class=
"cbi-button cbi-input-apply" value=
"<%:Flash image...%>" />
83 <% if image_invalid then %
>
84 <div class=
"cbi-section-error"><%:The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform. %
></div>
88 <div class=
"cbi-section-descr"><%:Sorry, there is no sysupgrade support present; a new firmware image must be flashed manually. Please refer to the OpenWrt wiki for device specific install instructions.%
></div>