diff options
author | Oliver Tappe | 2007-04-01 19:31:05 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-04-01 19:31:05 +0200 |
commit | 2cc97dd3751e740fc1a8439a39082d9f7844e02e (patch) | |
tree | dd337b6f838f16133899d99fc6368b569019f18d /config-db/slxconfig | |
parent | * fixed die() to provide exit-value 5 if no error is indicated by $!, such th... (diff) | |
download | core-2cc97dd3751e740fc1a8439a39082d9f7844e02e.tar.gz core-2cc97dd3751e740fc1a8439a39082d9f7844e02e.tar.xz core-2cc97dd3751e740fc1a8439a39082d9f7844e02e.zip |
* moved default values for systems and client into DB-layer
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@847 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db/slxconfig')
-rwxr-xr-x | config-db/slxconfig | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/config-db/slxconfig b/config-db/slxconfig index 962ba81b..5b4970a7 100755 --- a/config-db/slxconfig +++ b/config-db/slxconfig @@ -279,9 +279,6 @@ sub addClientToConfigDB if ($clientData->{mac} !~ m[^(?:[[:xdigit:]][[:xdigit:]]:){5}?[[:xdigit:]][[:xdigit:]]$]) { die _tr("unknown MAC-format given, expected something like '01:02:03:04:05:06'!\n"); } - if (!length($clientData->{boot_type})) { - $clientData->{boot_type} = 'pxe'; - } if ($openslxDB->fetchClientByFilter({ 'name' => $clientData->{name} })) { die _tr("the client '%s' already exists in the DB, giving up!\n", @@ -337,22 +334,6 @@ sub addSystemToConfigDB delete $systemData->{clients}; } - if (!length($systemData->{kernel})) { - $systemData->{kernel} = 'vmlinuz'; - } - if (!length($systemData->{label})) { - $systemData->{label} = "$systemData->{name}"; - } - if (!length($systemData->{ramfs_debug_level})) { - $systemData->{ramfs_debug_level} = '0'; - } - if (!length($systemData->{ramfs_use_glibc})) { - $systemData->{ramfs_use_glibc} = '0'; - } - if (!length($systemData->{ramfs_use_busybox})) { - $systemData->{ramfs_use_busybox} = '1'; - } - if ($openslxDB->fetchSystemByFilter({ 'name' => $systemData->{name} })) { die _tr("the system '%s' already exists in the DB, giving up!\n", $systemData->{name}); |