5 Apr
2009
5 Apr
'09
3:01 p.m.
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
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
On Mon, 6 Apr 2009 00:28:16 +1000 Jud <jud@judfilm.net> wrote: this is not valid bash syntax. remember that profiles (config files) just get sourced and must be valid bash. 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