[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#315030: netcfg: Preseded empty dns/gw



Package: netcfg
Version: 1.08
Followup-For: Bug #315030

reopen
thanks

The proposed solution does not work, if the preseedes values for gateway/DNS
are empty. (We have only 1 server = a few clients on a local net without
internet.) I suggest a construction like:

    debconf_fget(client,"netcfg/get_gateway","seen");
    if (strcmp(client->value, "true") != 0) 
    {
        debconf_get(client,"netcfg/get_gateway");
        if (strlen(client->value) <= 0) {
            debconf_set(client, "netcfg/get_gateway", ptr1);
        }
    }

and similarly for netcfg/get_nameservers

Cheers
        Ondra


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)



Reply to: