Matthias Huber wrote:
> ># blockrestore.sh
> >#!/bin/sh -x
> >for i in 1 2 3 4 5 6 ; do echo cp ${i}_* /dev/mtdblock$i ; cp
> >${i}_* /dev/mtdblock$i ; done
> >
> >and in practice, this works for backup _and_ restore
> >
> but the backup with the assumption, that there are the destination
> files already in the directory, like:

Hmm, don't you also assume that the partition has been erased before
writing ? Also, what happens if you have any bad blocks ?

- Werner

_______________________________________________
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support

Reply via email to