Re: RC - Dbootstrap is somewhat broken for non-networked boxes
On Thu, Apr 20, 2000 at 10:15:57PM -0700, Randolph Chung wrote:
> > In this situation, I don't load any modules. Dbootstrap asks me for a
> > host name then the next dialog advises me that no NIC drivers were
> > detected and that I could choose the alternate step of 'Install the
> > Base System'.
>
> I think dbootstrap does a check to see if you have any network interfaces
> activated, and will keep on asking you to configure your network if it
> doesn't find one. Try this patch; i'm not sure if it'll work or not. i won't
> be able to test this on a real install till this weekend.
>
> Save this as /tmp/dpatch (or whatever)
>
you can simply use if (!is_network_configured() && !is_network_up(1))
if is_network_up(1) returns 0, there are no network interfaces available.
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
Reply to: