Changes between Version 2 and Version 3 of sshflash

Show
Ignore:
Timestamp:
11/08/10 15:43:24 (3 years ago)
Author:
matthijs
Comment:

Add instructions on preserving configuration

Legend:

Unmodified
Added
Removed
Modified
  • sshflash

    v2 v3  
    1111{{{ 
    1212# cd /tmp 
    13 # wget http://path.of/filename.image 
     13# wget http://path.of/filename.img 
    1414}}} 
    1515 
     
    1919Connect to your Fonera 2.0 via ssh and type the following: 
    2020{{{ 
    21 # cd /tmp 
    22 # mtd -r write filename.image image 
     21# mtd -r write /tmp/filename.img image 
    2322}}} 
    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. 
     23Depending 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 
     27To 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{{{ 
     30tar 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 
     31mtd -j /tmp/sysupgrade.tgz -r write /tmp/filename.img image 
     32}}} 
     33 
     34The 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].