[CUWiN-Dev] steps.d/mediaenv patch

David Young dyoung at pobox.com
Wed Apr 20 17:04:56 CDT 2005


On Wed, Apr 20, 2005 at 12:36:01PM -0500, Bill Comisky wrote:
> 
> I was getting "CUW_BOOT_CONSOLE: parameter not set" when trying to build 
> an upgrade tarball, so I just put and if-block around the content of the 
> new mediaenv step to check for empty $TAR.  If there's a better fix let me 
> know..

Oops!  I will put in a similar fix.

Dave

> === steps.d/mediaenv
> ==================================================================
> --- steps.d/mediaenv  (revision 3014)
> +++ steps.d/mediaenv  (local)
> @@ -1,11 +1,13 @@
>  #!/bin/sh
>  
> -if [ "${FLASHDEV:-empty}" != empty ]; then
> -	CUW_BOOT_CONSOLE=${CUW_BOOT_CONSOLE:-com0,speed=19200}
> +if [ "${TAR:-empty}" = empty ]; then
> +	if [ "${FLASHDEV:-empty}" != empty ]; then
> +		CUW_BOOT_CONSOLE=${CUW_BOOT_CONSOLE:-com0,speed=19200}
> +	fi
> +	
> +	if [ "${ISO:-empty}" != empty -o "${BUILDFLOPPY:-no}" != no ]; then
> +		CUW_BOOT_CONSOLE=${CUW_BOOT_CONSOLE:-pc}
> +	fi
> +	
> +	export CUW_INSTALLBOOT="$TOOL_INSTALLBOOT -o console=${CUW_BOOT_CONSOLE}"
>  fi
> -
> -if [ "${ISO:-empty}" != empty -o "${BUILDFLOPPY:-no}" != no ]; then
> -	CUW_BOOT_CONSOLE=${CUW_BOOT_CONSOLE:-pc}
> -fi
> -
> -export CUW_INSTALLBOOT="$TOOL_INSTALLBOOT -o console=${CUW_BOOT_CONSOLE}"

-- 
David Young             OJC Technologies
dyoung at ojctech.com      Urbana, IL * (217) 278-3933


More information about the CU-Wireless-Dev mailing list