| 24 | | Depending on the hardware version of the Fonera the operation may take up to 20 min. Then the Fonera will reboot initiating the custom firmware. |
| | 23 | Depending on the hardware version of the Fonera the operation may take up to 20 min (early 2.0g models are slow, 2.0n models should be done in just a few minutes). Then the Fonera will reboot initiating the custom firmware. |
| | 24 | |
| | 25 | '''This operation will give you a clean firmware, your configuration changes will be lost''' |
| | 26 | |
| | 27 | To preserve your configuration, you can first make a dump of (most) configuration files and then ask {{{mtd}}} to put those files in the newly created JFFS partition. To do this, use the following commands: |
| | 28 | |
| | 29 | {{{ |
| | 30 | tar cvzf /tmp/sysupgrade.tgz /etc/passwd /etc/group /etc/dropbear /etc/samba/smbpasswd /etc/samba/secrets.tdb /etc/config/firewall /etc/config/upnpd /etc/config/umtsd /etc/config/registered /etc/config/gdata /etc/config/facebook /etc/config/flickr /etc/config/mountd /etc/config/fon /etc/config/ddns /etc/config/wizard /etc/pureftpd.passwd /etc/pureftpd.pdb /etc/config/pureftpd /etc/config/samba /etc/config/luci_dlmanager |
| | 31 | mtd -j /tmp/sysupgrade.tgz -r write /tmp/filename.img image |
| | 32 | }}} |
| | 33 | |
| | 34 | The list of files that need preservation might change: For a current list, see the {{{action_backup}}} function, somewhere around [source:trunk/luci/modules/admin-fon/luasrc/controller/fon_admin/fon_admin.lua#L173 here in fon_admin.lua]. |