Hi everyone, there have been some changes in trunk today:
• /etc/rc.shutdown and /etc/init.d/K* scripts are now run on shutdown • /etc/init.d/S* and /etc/init.d/K* scripts don't need to be executable any more, are run from /bin/sh • /etc/hotplug.d/* scripts are run from /bin/sh instead of sourced, some active devices scripts are run on shutdown (for umounting, PR#246) • fwcf now supports file deletion, “fwcf status”, “fwcf dump”, “fwcf restore” • halt, poweroff and reboot now do an “fwcf status -q” on execution, refuse to take action and warn if there are uncommitted changes; use -F to override • a new menuconfig option allows you to generate an “fwcf killer image”; after you flash and boot it use mtd to upgrade to an image without this option, because it will erase fwcf on every single boot (can't be done in a different way due to the way system initialisation works, but is pretty cool, first flash a small killer image, then use mtd to get your bigger-than-4MiB image onto the device) • the host tool “fwcf.helper” is built; allows you to generate both complete fwcf filesystems (for mtd write … fwcf) and dumps (for fwcf restore) and inspect dumps on the build system; example use would be deploying lots of boxen with different /etc (I suggest to create complete filesystems here); ask me if you plan to do anything with it or UTSL. • if you don't have gzip but need compression¹: ― fwcf.helper -Z [<infile> [<outfile>]] # to compress ― fwcf.helper -Zd [<infile> [<outfile>]] # to uncompress this is some kind of mini-lzop using LZO1X-1 and “asz” encoding (see the fwcf specification for details, which is part of the fwcf source tarball) • you can't accidentally build images without /bin/sh and/or /bin/ash any more • some under-the-hood changes, read the source for details ¹) both on the build² and target system ²) building the “fwcf host tools” manually offers even more things, e.g. a choice of different compression algorithms and more flags, but they will only be buildable on BSD systems, and this probably won't change; also, this stuff is largely undocumented, while the “fwcf helper” is documented via the fwcf shell script bye, //mirabile -- I believe no one can invent an algorithm. One just happens to hit upon it when God enlightens him. Or only God invents algorithms, we merely copy them. If you don't believe in God, just consider God as Nature if you won't deny existence. -- Coywolf Qi Hunt _______________________________________________ freewrt-developers mailing list [email protected] https://www.freewrt.org/lists/listinfo/freewrt-developers
