Hi Jan,

Look at the code in install.pl. One of the first things it does is 
determine the platform and set the $is_linux variable accordingly.

It might be better to leave the install.pl alone, and enclose some or all 
of your code in site.pl in something like
   if ($is_linux) {
           your linux code goes here;
   }
  else {
         things to do when booting from dos bootdisk;
   }

That way you keep a standard install.pl and keep the modifications where 
they should: in the site-specific place.
Prevents you from breaking code by overwriting it with the default files 
when updating your unattend-share. I'm speaking from experience here.

(I'm not a perl expert, but use of the $is_linux variable should be 
possible outside of install.pl. If not, feel free to modify install.pl :-) 
)

Greetings,

Niels de Groot


Relevant part of original message:

Message: 2
Subject: RE: Problems with dosboot and site/config.pl
Date: Thu, 21 Oct 2004 16:18:41 +0200
From: "Brauer, Jan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>

Oops should have rtfm. But how can i let install.pl determine when to
use site/config.pl?
What i mean is: how can install.pl determine whether i'm booting from
dos and not use config.pl or whether im botting from linux and use it?




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
unattended-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to