summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-20 15:45:20 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-20 15:45:20 +0000
commit8e58a9600bf5801340920e18fc221afd1e0721cc (patch)
tree636da1eaee7cc663236ae03e2f9ea17214dc3e25 /target
parent7c708742704c4f2091fda511fbec67256329102e (diff)
Fix wget2nand with the host's patch-cmdline and the new kernel filename
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8076 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/adm5120-2.6/base-files/default/sbin/wget2nand10
1 files changed, 1 insertions, 9 deletions
diff --git a/target/linux/adm5120-2.6/base-files/default/sbin/wget2nand b/target/linux/adm5120-2.6/base-files/default/sbin/wget2nand
index 1f7548aa0..adb56b946 100755
--- a/target/linux/adm5120-2.6/base-files/default/sbin/wget2nand
+++ b/target/linux/adm5120-2.6/base-files/default/sbin/wget2nand
@@ -45,16 +45,8 @@ mount -t yaffs2 "$boot" /tmp/wget2nand-boot
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-vmlinux.elf
+wget -O /tmp/wget2nand-boot/kernel $url/openwrt-adm5120-2.6-rb1xx-vmlinux
-# update the command line on the kernel to boot from the right place
-[ ! -e /sbin/patch-cmdline ] && {
- echo "Cannot find patch-cmdline"
- exit 1
-}
-
-echo "Patching the kernel command line"
-/sbin/patch-cmdline /tmp/wget2nand-boot/kernel "root=/dev/mtdblock1 rootfstype=yaffs2 init=/etc/preinit "
chmod +x /tmp/wget2nand-boot/kernel
# make sure everything is written before we unmount the partitions