X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/3ff9d155b124b88a9108abc06d15be1cbc491d97..62f688b6ec4fcf21d0b5f32de8b21dfed9202c4f:/target/linux/ar71xx/base-files/sbin/wget2nand diff --git a/target/linux/ar71xx/base-files/sbin/wget2nand b/target/linux/ar71xx/base-files/sbin/wget2nand index 99823be84..9cd6e7c40 100755 --- a/target/linux/ar71xx/base-files/sbin/wget2nand +++ b/target/linux/ar71xx/base-files/sbin/wget2nand @@ -27,8 +27,8 @@ url=$1 exit 1 } -url_kernel=$url/openwrt-ar71xx-vmlinux.elf -url_rootfs=$url/openwrt-ar71xx-rootfs.tgz +url_kernel=$url/openwrt-ar71xx-nand-vmlinux.elf +url_rootfs=$url/openwrt-ar71xx-nand-rootfs.tar.gz mtd_kernel="$(find_mtd_part 'kernel')" mtd_rootfs="$(find_mtd_part 'rootfs')" @@ -60,7 +60,10 @@ mount -t yaffs2 "$mtd_kernel" "$mnt_kernel" mount -t yaffs2 "$mtd_rootfs" "$mnt_rootfs" echo "Copying kernel..." -cp $src_kernel $mnt_kernel/kernel +cp $src_kernel $mnt_kernel/kernel || { + echo "Error occured while copying the kernel" + exit 1 +} chmod +x $mnt_kernel/kernel echo "Preparing filesystem..."