Werner Maes a écrit :
> hello
>
> This is what I do to install the correct drivers:
>
> 1. try to find out which system it is
> 2. copy all the drivers for that system to hard drive
> 3. install them
>
> we only have dell systems so it goes something like this
>
> sub getcompunaam {
> open("f","/usr/sbin/dmidecode|");
> while(<f>) {
> chomp;
> if (/System Information/) {
> while(!/^Handle/) {
> if (/Product Name:
> (dimension|optiplex|inspiron|latitude|precision
> workstation|satellite|vostro)\s+(\S*).*/i) {
> my $produkt=$2;
> print "$produkt\n";
> sleep 3;
> $produkt=~s/[ ]+//g;
> chomp($produkt);
> return lc($produkt);
> }
> $_=<f>;
> }
> }
> }
> }
>
> my $produkt=&getcompunaam();
> $u->push_value ('Unattended', 'OemPnPDriversPathSpecific', $produkt ); #
> GX620 e.d.
> my $osmedia= $u->{'_meta'}->{'OS_media'};
> $osmedia=~s/://g;
> $osmedia=~s#\\#\/#g;
> my $dir=lc("/z/");
> my $dir2="drivers/$produkt";
> opendir DIR,$dir.$dir2 or die "Unable to opendir $dir: $^E";
nice and elegant script ... but a bit centric to your own hardware
platforms. It also supposes that you completely manage the hardware
platform you're installing one.
Here, almost all laptops are present only once as a given hardware
platform, and among various vendors (Dell, IBM, etc.) ...
So my main need is to have a "generic solution", that should work
"whatever" is the hardware (especially on hardware I will never have
physical access to ..)
So autodetecting devices help to provide an usable system once
(remotely) installed.
By usable I mean have a decent display and a usable network card; all
the rest is extra value ;-/
Pierre Bourgin
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel