summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/kiosk/OpenSLX/OSPlugin/kiosk.pm
diff options
context:
space:
mode:
authorSebastian Schmelzer2009-05-29 21:57:33 +0200
committerSebastian Schmelzer2009-05-29 21:57:33 +0200
commit06fe0f0e0ebeca52027604a4f89db196379c30b1 (patch)
treeffecbd7781fde2a13fc9888a3fe96c9b001e6af2 /os-plugins/plugins/kiosk/OpenSLX/OSPlugin/kiosk.pm
parentStarting to enable the CGI script to write configurations ... (diff)
downloadcore-06fe0f0e0ebeca52027604a4f89db196379c30b1.tar.gz
core-06fe0f0e0ebeca52027604a4f89db196379c30b1.tar.xz
core-06fe0f0e0ebeca52027604a4f89db196379c30b1.zip
testversion of kiosk plugin with "profiles"
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2909 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/kiosk/OpenSLX/OSPlugin/kiosk.pm')
-rw-r--r--os-plugins/plugins/kiosk/OpenSLX/OSPlugin/kiosk.pm20
1 files changed, 19 insertions, 1 deletions
diff --git a/os-plugins/plugins/kiosk/OpenSLX/OSPlugin/kiosk.pm b/os-plugins/plugins/kiosk/OpenSLX/OSPlugin/kiosk.pm
index 8fe66450..6c42a6c2 100644
--- a/os-plugins/plugins/kiosk/OpenSLX/OSPlugin/kiosk.pm
+++ b/os-plugins/plugins/kiosk/OpenSLX/OSPlugin/kiosk.pm
@@ -17,6 +17,8 @@ use warnings;
use base qw(OpenSLX::OSPlugin::Base);
+use File::Path;
+
use OpenSLX::Basics;
use OpenSLX::Utils;
@@ -32,7 +34,9 @@ sub new
my $self = {
name => 'kiosk',
};
-
+
+ mkpath("$openslxConfig{'config-path'}/plugins/kiosk/profiles");
+
return bless $self, $class;
}
@@ -64,6 +68,18 @@ sub getAttrInfo
content_descr => '1 means active - 0 means inactive',
default => '1',
},
+ 'kiosk::profile' => {
+ applies_to_systems => 1,
+ applies_to_clients => 1,
+ description => unshiftHereDoc(<<' End-of-Here'),
+ should the 'kiosk'-plugin setup a specific profile for the
+ kiosk user? (profile data should be placed in
+ /etc/opt/openslx/plugins/kiosk/profiles/<profilename>/)
+ End-of-Here
+ #content_regex => qr{^(0|1)$},
+ content_descr => 'name of profile',
+ default => 'plain',
+ },
};
}
@@ -83,6 +99,8 @@ sub installationPhase
copyFile("$filesDir/bashrc","$pluginRepoPath");
copyFile("$filesDir/kgetty","$pluginRepoPath");
+ system(qq{cp -r $filesDir/profiles/* $openslxConfig{'config-path'}/plugins/kiosk/profiles/});
+
my $scriptpath = "$pluginRepoPath/setup.kgetty";
my $script = $self->{distro}->getKgettySetupScript();