On Wed, Mar 24, 2010 at 02:39:51PM +0100, Bernhard Loos wrote: > After a suggestion from xMff, I dedicded to use a uci-defaults script, > as this should fit the needs. Use it instead of the firstboot script > in the original patch. > I can't test it, as I don't have the device with me right now, but it's > trivial.
Based on others ar71xx uci-defaults scripts and yours I think the attached patch is a little better. Tested successfully with your original patch in both pure jffs2 and squashfs and it works fine. - Otto
Index: target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl =================================================================== --- target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl (revision 0) +++ target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl (revision 0) @@ -0,0 +1,16 @@ +#!/bin/sh +# +# Copyright (C) 2010 OpenWrt.org +# + +. /lib/ar71xx.sh + +board=$(ar71xx_board_name) + +wrt160nl_fixtrx() { + mtd -o 32 fixtrx firmware +} + +if [ "${board}" == "wrt160nl" ]; then + wrt160nl_fixtrx +fi Property changes on: target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl ___________________________________________________________________ Added: svn:executable + *
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel