X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Fadm5120%2Frouter_le%2Fbase-files%2Fsbin%2Fwget2nand;h=9b27b579b4b238794fa3547e8e197edb1ba7a10b;hb=7861defdcb0941c228824e345a9b32625eeca4c9;hp=adb56b946f9978c56bb5b9d584ddc236188f1d46;hpb=06adb0f93bdfc19cc62aa2c6f1f8cb8a6f4cae44;p=openwrt-10.03%2F.git diff --git a/target/linux/adm5120/router_le/base-files/sbin/wget2nand b/target/linux/adm5120/router_le/base-files/sbin/wget2nand index adb56b946..9b27b579b 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