Re: Providing Defaults to class/ scripts (was:: Adding to $kernelmodules)

2009-10-16 Diskussionsfäden Thomas Neumann
hiya >> contents of /srv/fai/config/class/01-init.source >> --- >> #!/bin/bash >> >> TESTVAR="foobar" >> export TESTVAR >> --- > So ... does that work? IMHO it should, but as Michael Goetze said, you > probably cannot do more than this, like use $TESTVAR in some *.var files > or somewhere later o

Re: Providing Defaults to class/ scripts (was:: Adding to $kernelmodules)

2009-10-16 Diskussionsfäden Michael Tautschnig
> hiya > >> Is there a "correct" way to provide variables to scripts in class/ ? > [...] > > > If you name your script 00foobar.source it will be executed first _and_ > > sourced, therefore all variable definitions from 00foobar.source will > > also be visible in all other scripts. You might need

Re: Providing Defaults to class/ scripts (was:: Adding to $kernelmodules)

2009-10-16 Diskussionsfäden Thomas Neumann
hiya >> Is there a "correct" way to provide variables to scripts in class/ ? [...] > If you name your script 00foobar.source it will be executed first _and_ > sourced, therefore all variable definitions from 00foobar.source will > also be visible in all other scripts. You might need to export the

Re: Providing Defaults to class/ scripts (was:: Adding to $kernelmodules)

2009-10-15 Diskussionsfäden Michael Tautschnig
> hiya > > > $kernelmodules is the right way to do this, but not in > > FAIBASE.var. The variable is used in 20-hwdetect.source, which is > > executed before FAIBASSE.var is sourced. You can just edit your > > 20-hwdetect.source script and add modules there to $kernelmodules. > > Is there a "corr

Providing Defaults to class/ scripts (was:: Adding to $kernelmodules)

2009-09-24 Diskussionsfäden Thomas Neumann
hiya > $kernelmodules is the right way to do this, but not in > FAIBASE.var. The variable is used in 20-hwdetect.source, which is > executed before FAIBASSE.var is sourced. You can just edit your > 20-hwdetect.source script and add modules there to $kernelmodules. Is there a "correct" way to prov

Re: Adding to $kernelmodules

2009-09-24 Diskussionsfäden Thomas Lange
> On Thu, 24 Sep 2009 10:45:39 -0500, "John G. Heim" > said: > I am trying to load a module during installation. I found a note in the file > FAIBASE.var that I can do that by adding the module name to $kernelmodules. > But I'm not sure how to do that. I tried adding it

Adding to $kernelmodules

2009-09-24 Diskussionsfäden John G. Heim
I am trying to load a module during installation. I found a note in the file FAIBASE.var that I can do that by adding the module name to $kernelmodules. But I'm not sure how to do that. I tried adding it in that same file as shown below but it does not work: # MODULESLIST contains modules that