Fix wget2nand with the host's patch-cmdline and the new kernel filename
authorFlorian Fainelli <florian@openwrt.org>
Fri, 20 Jul 2007 15:45:20 +0000 (15:45 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 20 Jul 2007 15:45:20 +0000 (15:45 +0000)
SVN-Revision: 8076

target/linux/adm5120-2.6/base-files/default/sbin/wget2nand

index 1f7548aa0639102e7650636977f3e629ff76d0e1..adb56b946f9978c56bb5b9d584ddc236188f1d46 100755 (executable)
@@ -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