On Tue, Mar 06, 2007 at 02:59:49PM +0000, Thorsten Glaser wrote: > I used a special image where I put a different preinit > file into target/extra/etc/ which erased the partition > on boot, then I flashed a ???real??? image. I thought of > putting this image up, but we'd need one per device > type then.
What about some self-destroying script which can be included into the image to be built just like any other package? I think of something like | [ -x /sbin/cleanup_root ] && /sbin/cleanup_root inside /etc/preinit, while cleanup_root looks about this: | #!/bin/sh | mtd -e fwcf | rm $0 | reboot I don't know if this works, maybe it must be coded in C and call unlink() on argv[0]. Greetings, Phil _______________________________________________ freewrt-developers mailing list [email protected] https://www.freewrt.org/lists/listinfo/freewrt-developers
