From 49362ffd959fcf42af8866f69e9d93c9fb541232 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Wed, 28 Jan 2009 11:18:45 +0000 Subject: * refactored common stuff from PrebootCD into Preboot, as there will be other variants, later (like PrebootDisk, etc.) * adjusted naming to follow our style better (no more all-caps) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2535 95ad53e4-c205-0410-b2fa-d234c58c8868 --- config-db/slxconfig-demuxer | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config-db/slxconfig-demuxer') diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index 9d5cd7e9..b9f2a8dd 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -317,7 +317,11 @@ sub bootEnvironmentForType { my $bootType = shift || 'pxe'; - $bootType =~ tr{[a-z]\-}{[A-Z]_}; + my %bootTypeMap = ( + 'pxe' => 'PXE', + 'preboot-cd' => 'PrebootCD', + ); + $bootType = $bootTypeMap{lc($bootType)}; if (!$bootEnvMap{$bootType}) { my $bootEnv = instantiateClass("OpenSLX::BootEnvironment::$bootType"); -- cgit v1.2.3-55-g7522