From 95da2c40e364b4d2dc68aed83d332c8eed6d2030 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 2 Jun 2011 17:27:43 +0200 Subject: rename distro versions --- .../OpenSLX/MakeInitRamFS/Distro/LinuxMint.pm | 60 ---------------------- .../OpenSLX/MakeInitRamFS/Distro/Linuxmint.pm | 60 ++++++++++++++++++++++ 2 files changed, 60 insertions(+), 60 deletions(-) delete mode 100644 src/boot-env/OpenSLX/MakeInitRamFS/Distro/LinuxMint.pm create mode 100644 src/boot-env/OpenSLX/MakeInitRamFS/Distro/Linuxmint.pm (limited to 'src/boot-env') diff --git a/src/boot-env/OpenSLX/MakeInitRamFS/Distro/LinuxMint.pm b/src/boot-env/OpenSLX/MakeInitRamFS/Distro/LinuxMint.pm deleted file mode 100644 index b813c91b..00000000 --- a/src/boot-env/OpenSLX/MakeInitRamFS/Distro/LinuxMint.pm +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright (c) 2011 - OpenSLX GmbH -# -# This program is free software distributed under the GPL version 2. -# See http://openslx.org/COPYING -# -# If you have any feedback please consult http://openslx.org/feedback and -# send your suggestions, praise, or complaints to feedback@openslx.org -# -# General information about OpenSLX can be found at http://openslx.org/ -# ----------------------------------------------------------------------------- -# MakeInitRamFS::Distro::LinuxMint.pm -# - provides LinuxMint-specific overrides of the MakeInitRamFS::Distro API. -# ----------------------------------------------------------------------------- -package OpenSLX::MakeInitRamFS::Distro::LinuxMint; - -use strict; -use warnings; - -use base qw(OpenSLX::MakeInitRamFS::Distro::Base); - -use OpenSLX::Basics; - -################################################################################ -### implementation -################################################################################ -sub new -{ - my $class = shift; - my $self = { - 'base-name' => 'linuxmint', - }; - return bless $self, $class; -} - -# filter out modules not present (e.g. because compiled into the kernel) -sub applyChanges -{ - my $self = shift; - my $engine = shift; - - $engine->_addFilteredKernelModules( qw( unix hid-bright af_packet uhci-hcd ohci-hcd )); - - return; -} - -sub determineMatchingHwinfoVersion -{ - my $self = shift; - my $distroVersion = shift; - - # Please check, if correct - my %versionMap = ( - '10' => '16.0', - '11' => '16.0', - ); - return $versionMap{$distroVersion} - || $self->SUPER::determineMatchingHwinfoVersion($distroVersion); -} - -1; diff --git a/src/boot-env/OpenSLX/MakeInitRamFS/Distro/Linuxmint.pm b/src/boot-env/OpenSLX/MakeInitRamFS/Distro/Linuxmint.pm new file mode 100644 index 00000000..e4aef1ca --- /dev/null +++ b/src/boot-env/OpenSLX/MakeInitRamFS/Distro/Linuxmint.pm @@ -0,0 +1,60 @@ +# Copyright (c) 2011 - OpenSLX GmbH +# +# This program is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your suggestions, praise, or complaints to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org/ +# ----------------------------------------------------------------------------- +# MakeInitRamFS::Distro::LinuxMint.pm +# - provides LinuxMint-specific overrides of the MakeInitRamFS::Distro API. +# ----------------------------------------------------------------------------- +package OpenSLX::MakeInitRamFS::Distro::Linuxmint; + +use strict; +use warnings; + +use base qw(OpenSLX::MakeInitRamFS::Distro::Base); + +use OpenSLX::Basics; + +################################################################################ +### implementation +################################################################################ +sub new +{ + my $class = shift; + my $self = { + 'base-name' => 'linuxmint', + }; + return bless $self, $class; +} + +# filter out modules not present (e.g. because compiled into the kernel) +sub applyChanges +{ + my $self = shift; + my $engine = shift; + + $engine->_addFilteredKernelModules( qw( unix hid-bright af_packet uhci-hcd ohci-hcd )); + + return; +} + +sub determineMatchingHwinfoVersion +{ + my $self = shift; + my $distroVersion = shift; + + # Please check, if correct + my %versionMap = ( + '10' => '16.0', + '11' => '16.0', + ); + return $versionMap{$distroVersion} + || $self->SUPER::determineMatchingHwinfoVersion($distroVersion); +} + +1; -- cgit v1.2.3-55-g7522