diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 18:38:29 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 18:38:29 -0200 |
commit | 9c2acf962b0ac9d7eff9347e530cb330b62cc7d1 (patch) | |
tree | d9d26738964d3bd86357610d297e1b0bcc337b71 | |
parent | fc13d7e58069341a7f85da0861b721f748c0332f (diff) | |
download | puppet-nodo-9c2acf962b0ac9d7eff9347e530cb330b62cc7d1.tar.gz puppet-nodo-9c2acf962b0ac9d7eff9347e530cb330b62cc7d1.tar.bz2 |
Wireless default device depends on distro version
-rw-r--r-- | manifests/subsystems/firewall.pp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp index b2f4383..e05a2a6 100644 --- a/manifests/subsystems/firewall.pp +++ b/manifests/subsystems/firewall.pp @@ -245,8 +245,15 @@ class firewall::wifi { default => false, } + # Default device depends if madwifi or + # built-in kernel driver is being used + $wifi_default_device = $lsbdistcodename ? { + 'lenny' => 'ath0', + default => 'wlan0', + } + $wifi_dev = $wifi_device ? { - '' => 'ath0', + '' => $wifi_default_device, default => $wifi_device, } |