On Wed, Jan 23, 2002 at 08:38:30AM -0800, Matt Kraai wrote: > Index: netconfig.c
> + if ((p_file = fopen(target_path(NC_INTERFACES_FILE), "a"))) { > + fprintf(p_file, "\n# The first network card - this entry was created during the >Debian installation\n"); > + fprintf(p_file, "# (network, broadcast and gateway are optional)\n"); > + fprintf(p_file, "auto %s\n", netinterface); > + fprintf(p_file, "iface %s inet static\n", netinterface); > + fprintf(p_file, "\taddress %s\n", IP4tostr(prtbuf, ipaddr)); > @@ -803,18 +726,11 @@ int write_dhcp_network() { > -#ifdef PCMCIA > - if (has_pcmcia) { > - write_pcmcia_network(); > - } else > -#endif /* PCMCIA */ > + p_file = fopen(target_path(NC_INTERFACES_FILE), "a"); > + fprintf(p_file, "\n# The first network card - this entry was created during the >Debian installation\n"); > + fprintf(p_file, "auto %s\n", netinterface); > + fprintf(p_file, "iface %s inet dhcp\n", netinterface); > + fclose(p_file); > return 0; > } The "auto" line probably shouldn't appear for PCMCIA cards. (auto means "configure this interface at bootup", whereas PCMCIA cards are only configured when the card's inserted) Cheers, aj -- Anthony Towns <[EMAIL PROTECTED]> <http://azure.humbug.org.au/~aj/> I don't speak for anyone save myself. GPG signed mail preferred. The daffodils are coming. Are you? linux.conf.au, February 2002, Brisbane, Australia --- http://linux.conf.au/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]