[Pkg-utopia-maintainers] Bug#606268: Bug#606268: Bug#606268: now ignores interfaces configured by d-i

Joey Hess joeyh at debian.org
Wed Dec 8 16:08:13 UTC 2010


Michael Biebl wrote:
> Could you please post further examples of such interfaces files generated by
> d-i, especially wireless configurations.

Why? Here is the code that generates them:

    if ((fp = file_open(INTERFACES_FILE, "a"))) {
        fprintf(fp, "\n# The primary network interface\n");
        if (!iface_is_hotpluggable(iface) && !find_in_stab(iface))
            fprintf(fp, "auto %s\n", iface);
        else
            fprintf(fp, "allow-hotplug %s\n", iface);
        fprintf(fp, "iface %s inet dhcp\n", iface);
        if (dhostname) {
            fprintf(fp, "\thostname %s\n", dhostname);
        }
        if (is_wireless_iface(iface)) {
            fprintf(fp, "\t# wireless-* options are implemented by the wireless-tools package\n");
            fprintf(fp, "\twireless-mode %s\n",
                    (mode == MANAGED) ? "managed" : "ad-hoc");
            fprintf(fp, "\twireless-essid %s\n",
                    (essid && *essid) ? essid : "any");
            if (wepkey != NULL)
                fprintf(fp, "\twireless-key1 %s\n", wepkey);
        }
        fclose(fp);
    }

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20101208/8ce986fc/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list