[luci] How to update Dir-300 without loosing seetings ?

Jo-Philipp Wich xm at subsignal.org
Fri Jun 19 05:51:34 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi again.

I now actually took some time to flash a Fonera and try the -j option.

The Kernel is flashed as usual:

  mtd -e vmlinux.bin.l7 write openwrt-atheros-vmlinux.lzma \
    vmlinux.bin.l7

Now gzip your important stuff, for example:

  tar -cz /etc/config > /tmp/sysupgrade.tgz

While writing the rootfs you have to utilize the -j option:

  mtd -e rootfs -j /tmp/sysupgrade.tgz write \
    openwrt-atheros-root.squashfs rootfs

Now the usual reboot.


After the Device is rebooted, /etc/preinit will find /sysupgrade.tgz,
unpack and remove it.

I haven't experimented further but I think that the above steps could be
wrapped into a platform.sh script for sysupgrade.


HTH, JoW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAko7C0MACgkQdputYINPTPPr7QCeLzxJHoudxXSYLr0xi2+hMKki
g48AnREOFK6s62/5+g5OfQaCqMXghlJv
=xK5o
-----END PGP SIGNATURE-----


More information about the luci mailing list