[arch-releng] Automagic_Profiles_Loader.example

Jud jud at judfilm.net
Sun Apr 5 21:08:36 EDT 2009


On Sun, 5 Apr 2009 17:01:52 +0200
Dieter Plaetinck <dieter at plaetinck.be> wrote:

> 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.

Thanks for the feedback. My idea here is to let aif know that I want to
install via "ftp" first and if that won't work then fallback to "usb"
then "disc". There could be many possibilities here as Arch and Pacman
works with more technologies. What would be the best way - quotes or
parentheses?

> 
> > 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
> 

My idea here was to have the message with a visual countdown, the real
version would be a function and the time would be an argument and maybe
a "cancel" button. 



More information about the arch-releng mailing list