Table of Contents
tmpfs version
This version mostly used for typical routers with big Read-Only partition.
preserved files
tmpfs version have /sbin/flash script which can be used for loads/saves important files from/to raw MTD partition (/dev/mtdblock3).
Usage:
# /sbin/flash Usage: /sbin/flash save | load [dst]
By default this script saves: /etc /usr/local /root. Edit /etc/midge.save for change defaults.
packages
In tmpfs version also supports ipkg packages. But for preserving files ipkg -d local should be used
Example:
# ipkg -d local update Downloading http://midge.vlad.org.ua/ipkg/Packages ... Connecting to midge.vlad.org.ua[212.1.120.85]:80 Packages 100% |*****************************| 11533 00:00 ETA Done. Updated list of available packages in /usr/lib/ipkg/lists/midge # ipkg -d local install tc Downloading http://midge.vlad.org.ua/ipkg/./tc_0_mipsel.ipk ... Connecting to midge.vlad.org.ua[212.1.120.85]:80 tc_0_mipsel.ipk 100% |*****************************| 56732 00:00 ETA Done. Unpacking tc...Done. Configuring tc...Done. # flash save Info: Saving to /tmp/flash.tar.gzip tar: Removing leading '/' from member names root/ usr/local/ usr/local/sbin/ usr/local/sbin/tc usr/local/usr/ usr/local/usr/lib/ usr/local/usr/lib/ipkg/ usr/local/usr/lib/ipkg/status usr/local/usr/lib/ipkg/info/ usr/local/usr/lib/ipkg/info/tc.list usr/local/tmp/ usr/local/tmp/ipkg/ etc/ etc/random-seed etc/TZ etc/mtab etc/crontab etc/fstab etc/group etc/hosts etc/tpkg.conf etc/ethertypes etc/network/ ... etc/inputrc etc/protocols etc/resolv.conf etc/profile etc/midge.save 1+1 records in 1+1 records out
