summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/wlanboot/OpenSLX/OSPlugin
diff options
context:
space:
mode:
authorAlexander Hoppe2009-06-03 11:11:44 +0200
committerAlexander Hoppe2009-06-03 11:11:44 +0200
commit823a272149b7b71c096fc64c700654b7068185ea (patch)
treeb097101f9c39d64c8aa5bb177f12589187dc4081 /os-plugins/plugins/wlanboot/OpenSLX/OSPlugin
parentChanges to PreBoot as discussed (removing selection part from isolinux (diff)
downloadcore-823a272149b7b71c096fc64c700654b7068185ea.tar.gz
core-823a272149b7b71c096fc64c700654b7068185ea.tar.xz
core-823a272149b7b71c096fc64c700654b7068185ea.zip
state for wlanboot-plugin
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2913 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/wlanboot/OpenSLX/OSPlugin')
-rw-r--r--os-plugins/plugins/wlanboot/OpenSLX/OSPlugin/wlanboot.pm31
1 files changed, 31 insertions, 0 deletions
diff --git a/os-plugins/plugins/wlanboot/OpenSLX/OSPlugin/wlanboot.pm b/os-plugins/plugins/wlanboot/OpenSLX/OSPlugin/wlanboot.pm
index 533be865..ab1c614e 100644
--- a/os-plugins/plugins/wlanboot/OpenSLX/OSPlugin/wlanboot.pm
+++ b/os-plugins/plugins/wlanboot/OpenSLX/OSPlugin/wlanboot.pm
@@ -20,6 +20,8 @@ use base qw(OpenSLX::OSPlugin::Base);
use File::Path;
+use Data::Dumper;
+
use OpenSLX::Basics;
use OpenSLX::Utils;
@@ -71,6 +73,16 @@ sub getAttrInfo
content_descr => '1 means active - 0 means inactive',
default => '1',
},
+ 'wlanboot::activenics' => {
+ applies_to_systems => 1,
+ applies_to_clients => 1,
+ description => unshiftHereDoc(<<' End-of-Here'),
+ kernel modules to load ..
+ End-of-Here
+ content_regex => '',
+ content_descr => 'space seperated list of kernel modules (without .ko)',
+ default => 'iwl3945 arc4 ecb',
+ },
};
}
@@ -86,6 +98,7 @@ sub installationPhase
my $attrs = $info->{'plugin-attrs'};
my $filesDir = "$openslxBasePath/lib/plugins/wlanboot/files";
+ slxsystem("cp -r $filesDir $pluginRepoPath/");
return;
}
@@ -101,6 +114,21 @@ sub removalPhase
return;
}
+sub suggestAdditionalKernelModules
+{
+ my $self = shift;
+ my $info = shift;
+
+ my $attrs = $info->{'attrs'};
+
+ my @suggestedKernelModules;
+
+ print Dumper(split(/ /, $attrs->{'wlanboot::activenics'}));
+ push(@suggestedKernelModules, split(/ /, $attrs->{'wlanboot::activenics'} ));
+
+ return @suggestedKernelModules;
+}
+
sub copyRequiredFilesIntoInitramfs
{
my $self = shift;
@@ -115,6 +143,9 @@ sub copyRequiredFilesIntoInitramfs
$makeInitRamFSEngine->addCMD(
"cp -a $pluginRepoPath/files/firmware $targetPath/lib"
);
+ $makeInitRamFSEngine->addCMD(
+ "cp -a $pluginRepoPath/files/lib $targetPath/"
+ );
vlog(1, _tr("wlanboot-plugin: ..."));
return;