projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel: fix cryptodev with kernel >= 2.6.35
[openwrt.git]
/
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
99823be
..
171e3fa
100755
(executable)
--- a/
target/linux/ar71xx/base-files/sbin/wget2nand
+++ b/
target/linux/ar71xx/base-files/sbin/wget2nand
@@
-28,7
+28,7
@@
url=$1
}
url_kernel=$url/openwrt-ar71xx-vmlinux.elf
}
url_kernel=$url/openwrt-ar71xx-vmlinux.elf
-url_rootfs=$url/openwrt-ar71xx-rootfs.tgz
+url_rootfs=$url/openwrt-ar71xx-rootfs.t
ar.
gz
mtd_kernel="$(find_mtd_part 'kernel')"
mtd_rootfs="$(find_mtd_part 'rootfs')"
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..."
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..."
chmod +x $mnt_kernel/kernel
echo "Preparing filesystem..."
This page took
0.032179 seconds
and
4
git commands to generate.