[arch-releng] Automagic_Profiles_Loader.example

Dieter Plaetinck dieter at plaetinck.be
Sun Apr 5 11:01:52 EDT 2009


On Mon, 6 Apr 2009 00:28:16 +1000
Jud <jud at judfilm.net> wrote:

> Just an example of how I'd like it to work, still very much a work in
> progress.
> 
> #
> # AIF Automagic_Profiles_Loader.example
> #
> 
> SOURCE=ftp usb disc
this is not valid bash syntax.  remember that profiles (config files)
just get sourced and must be valid bash.

> worker_intro () {
>     infofy "Automatic procedure running the generic-install-on-sda
> example config.  THIS WILL ERASE AND OVERWRITE YOUR /DEV/SDA.  IF YOU
> DO NOT WANT THIS PRESS CTRL+C WITHIN 10 SECONDS" countdown=10
like this countdown=10 is passed as argument to infofy. probably not
what you want.
> while [ $countdown -gt 0 ]; do
>     echo $countdown... 
>     countdown=$((countdown-1))
>     sleep 1
> done



More information about the arch-releng mailing list