Op 14-12-2006 om 15:38 schreef Rod Whitby:
> Index: flash-kernel
> ===================================================================
> --- flash-kernel      (revision 43316)
> +++ flash-kernel      (working copy)
> @@ -128,7 +128,7 @@
>               ) > "$mtdkernel" || error "failed."
>               echo "done." >&2
>               printf "Flashing initramfs: " >&2
> -             size=$(grep "Ramdisk" /proc/mtd | cut -d " " -f 2)
> +             size=$(grep "\"Ramdisk\"" /proc/mtd | cut -d " " -f 2)
>               size=$(printf "%d" 0x$size)
>               isize=$(wc -c $ifile | awk '{print $1}')
>               cat $ifile > $tmp
> @@ -160,7 +184,7 @@
>               ) > $mtdkernel || error "failed."
>               echo "done." >&2
>               printf "Flashing initramfs... " >&2
> -             size=$(grep "ramdisk" /proc/mtd | cut -d " " -f 2)
> +             size=$(grep "\"ramdisk\"" /proc/mtd | cut -d " " -f 2)
>               size=$(printf "%d" 0x$size)
>               isize=$(wc -c $ifile | awk '{print $1}')
>               pad=$(expr $size - $isize)

Is there really both 'Ramdisk' and 'ramdisk' in /proc/mtd ?


Cheers
Geert Stappers


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to