Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-6374 openrc/corenetwork improvements tracker
  3. FL-6308

/etc/init.d/netif.tmpl wpa_supplicant template config & dhcp support

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None

      Hi.

       

      Yesterday i've found that funtoo has wpa_supplicant template and i have no need in my custom wifi template now . But i found some missed features that has my wifi template and try to patch wpa_supplicant template to eliminate this situation . May be this will be useful for all(if so, i'll make pull request). Patched in the order they must be applied with descriptions:

       

      1. wpa_supplicant.mkdir.patch
         there is no pidfile dir /var/run/wpa_supplicant/, so it must be created
      2. wpa_supplicant.config.patch
        there are situations when binding config file name to an interface is not convenient.
        For example, i have several wifi networks at one place and need to switch between them. With this patch i can do this with help of config variable or CONFIG environment variable. E.g.:
        ~# CONFIG=mobile.conf /etc/init.d/net.wlan0 start
      3. wpa_supplicant.dhcp.patch
        add dhcp variable; when it set to "yes", dhcpcd is started after wpa_supplicant and this looks like dhcpcd template behaviour

        1. wpa_supplicant.config.patch
          0.6 kB
          lego12239
        2. wpa_supplicant.dhcp.patch
          1 kB
          lego12239
        3. wpa_supplicant.mkdir.patch
          0.4 kB
          lego12239

            Unassigned Unassigned
            lego12239 lego12239
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: