Puppet Class: archlinux_macbookretina::wireless

Defined in:
manifests/wireless.pp

Overview

Install wireless drivers, iw and wpa_supplicant.

  • On MacBookPro10,1 install the broadcom-wl driver.

  • On other models, use the build-in kernel drivers.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/wireless.pp', line 7

class archlinux_macbookretina::wireless {

  case $::productname {
    'MacBookPro10,1': {
      # we could also use the open source [b43-firmware](https://aur.archlinux.org/packages/b43-firmware/)
      # for a custom kernel, we'll need https://aur.archlinux.org/packages/broadcom-wl-dkms/
      package {'broadcom-wl':
        ensure => present,
      }
    }
    default: {
      notify {"using built-in kernel drivers for wireless on ${::productname}": }
    }
  }

  package {'iw':
    ensure => present,
  }

  package {'wpa_supplicant':
    ensure => present,
  }

}