From: Silvio Rhatto Date: Sun, 11 Apr 2010 20:15:20 +0000 (-0300) Subject: Adding sysctl::laptop X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=540bc4c391680c0acb5232e1d830bb9b13eabc55;p=puppet-nodo.git Adding sysctl::laptop --- diff --git a/files/etc/modprobe.d/aspire-blacklist-memstick.conf b/files/etc/modprobe.d/aspire-blacklist-memstick.conf new file mode 100644 index 0000000..4f7fd29 --- /dev/null +++ b/files/etc/modprobe.d/aspire-blacklist-memstick.conf @@ -0,0 +1,2 @@ +blacklist jmb38x_ms +blacklist memstick diff --git a/files/etc/sysctl.d/madwifi.conf b/files/etc/sysctl.d/madwifi.conf new file mode 100644 index 0000000..5483318 --- /dev/null +++ b/files/etc/sysctl.d/madwifi.conf @@ -0,0 +1,2 @@ +dev.wifi0.ledpin=3 +dev.wifi0.softled=1 diff --git a/manifests/laptop.pp b/manifests/laptop.pp index 9753869..5b7ecdb 100644 --- a/manifests/laptop.pp +++ b/manifests/laptop.pp @@ -1,6 +1,7 @@ class nodo::laptop inherits nodo::personal { include utils::laptop include modprobe::laptop + include sysctl::laptop # fstab file { "/etc/fstab": diff --git a/manifests/subsystems/modprobe.pp b/manifests/subsystems/modprobe.pp index cfd6be8..01a2f91 100644 --- a/manifests/subsystems/modprobe.pp +++ b/manifests/subsystems/modprobe.pp @@ -17,4 +17,13 @@ class modprobe::laptop { ensure => present, source => "puppet://$server/modules/nodo/etc/modules/laptop", } + + # see http://wiki.debian.org/DebianAcerOne#Cardreader + file { "/etc/modprobe.d/aspire-blacklist-memstick.conf": + owner => "root", + group => "root", + mode => 0644, + ensure => present, + source => "puppet://$server/modules/nodo/etc/modprobe.d/aspire-blacklist-memstick.conf", + } } diff --git a/manifests/subsystems/sysctl.pp b/manifests/subsystems/sysctl.pp index 3bd028c..7dfb875 100644 --- a/manifests/subsystems/sysctl.pp +++ b/manifests/subsystems/sysctl.pp @@ -14,3 +14,13 @@ class sysctl { refreshonly => true, } } + +class sysctl::laptop { + file { "/etc/sysctl.d/madwifi.conf": + owner => "root", + group => "root", + mode => 0644, + ensure => present, + source => "puppet://$server/modules/nodo/etc/sysctl.d/madwifi.conf", + } +}