bash tables :-P

Steven Michalske hardkrash at lunar-linux.org
Wed Oct 8 23:00:03 GMT 2003


For R0dzilla
Food for thought

bootloaders = ( lilo grub ... )
delay = ( delay wait ... )
label_limit = ( 24 0 ... )
and so on

then to select the proper index for the functions values

$num = 0
while bootloaders[$num] != bootloader
num + 1

then use num to access the values in the "table"


just thoughts for a purest bash :-P

Hardkrash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://dbguin.lunar-linux.org/mailman/private/lunar-dev/attachments/20031008/04d8fbf7/attachment.bin


More information about the lunar-dev mailing list