Travis Zadikem wrote:
> I am looking for just a basic config.pl that uses a different 
> unattend.txt for each different os and nothing else at this time for 
> testing. Anyone willing to share one.  Thanks!

I added this just below "Put your changes here". It's simple but it does 
the job. I probably copy-pasted it from someone else around here.


my $media_obj = Unattend::WinMedia->new ($u->{'_meta'}->{'OS_media'});
my $os_name = $media_obj->name ();

if ($os_name =~ /Windows Server 2003/) {
    $u->read (dos_to_host ('z:\\site\\un03s.txt'));
}
elsif ($os_name =~ /Windows XP/) {
    $u->read (dos_to_host ('z:\\site\\unxp.txt'));
}
else {
    die "Unrecognized OS name: $os_name";
}


-------------------------------------------------------------------------
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-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to