[Voyage-linux] PATCH: command line processing for voyage.update

Punky Tse (spam-protected)
Sun Nov 1 01:47:17 HKT 2009


Hi Darsha,

Thanks.  Applied.

Darshaka Pathirana wrote:
> Hi!
>
> On 09/22/2009 05:55 PM, Christian Recktenwald wrote:
>   
>> I added some code also allowing voyage.update to
>> be run unattended which really helps if one
>> has to set up a bunch of alix (or other) boxes.
>>
>> So it may be called this way:
>>
>> cd voyage-current
>> ./usr/local/sbin/voyage.update  -i  -P ALIX -t /dev/sdc -p 1 -m /mnt/cf -b 1 -g -s 9600 -c serial -d .
>>     
>
> Nice work. But would it be possible to add a command line flag to "Use
> Flash Media as-is"? Something like this:
>
> --- voyage-install.sh.orig      2009-10-31 17:28:16.000000000 +0100
> +++ voyage-install.sh   2009-10-31 17:44:25.000000000 +0100
> @@ -319,6 +319,7 @@
>                 -c  VOYAGE_SYSTEM_CONSOLE
> default=$VOYAGE_SYSTEM_CONSOLE
>                 -d  DISTDIR               default=$DISTDIR
>                 -f  partition and mkfs    default=ask
> +               -U  use flash media as-is default=ask
>  EOF
>  }
>  
> @@ -378,6 +379,9 @@
>                 -f) CLA_MAKEFS="1"
>                          BITMAP=$[ $BITMAP | 512 ]
>                         ;;
> +               -U) CLA_MAKEFS="0"
> +                        BITMAP=$[ $BITMAP | 512 ]
> +                       ;;
>                 *)  usage
>                         exit 1
>                         ;;
>
> Greetings,
>  - Darsha
>
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>   





More information about the Voyage-linux mailing list