From b532bbbf4fcc4b0efc0e8cf0fc806d768d875ea1 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Wed, 24 Oct 2007 17:17:04 +0000 Subject: [PATCH] The build system actually changed the routerboard kernel (#2584) SVN-Revision: 9430 --- target/linux/adm5120/router_le/base-files/sbin/wget2nand | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/linux/adm5120/router_le/base-files/sbin/wget2nand b/target/linux/adm5120/router_le/base-files/sbin/wget2nand index adb56b946f..9b27b579b4 100755 --- a/target/linux/adm5120/router_le/base-files/sbin/wget2nand +++ b/target/linux/adm5120/router_le/base-files/sbin/wget2nand @@ -43,9 +43,13 @@ mkdir /tmp/wget2nand-boot mount -t yaffs2 "$main" /tmp/wget2nand/ mount -t yaffs2 "$boot" /tmp/wget2nand-boot +echo "Erasing existing files." +rm -rf /tmp/wget2nand/* + echo "Copying filesystem..." ( wget -O - $url/openwrt-adm5120-2.6-rootfs.tgz) | ( cd /tmp/wget2nand/; tar xvz ) -wget -O /tmp/wget2nand-boot/kernel $url/openwrt-adm5120-2.6-rb1xx-vmlinux +# RouterBOOT is looking for a kernel named "kernel" +wget -O /tmp/wget2nand-boot/kernel $url/openwrt-adm5120-2.6-rb1xx-kernel chmod +x /tmp/wget2nand-boot/kernel -- 2.30.2