From 9c2acf962b0ac9d7eff9347e530cb330b62cc7d1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 18 Feb 2011 18:38:29 -0200 Subject: Wireless default device depends on distro version --- manifests/subsystems/firewall.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'manifests/subsystems') 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, } -- cgit v1.2.3