summaryrefslogtreecommitdiffstats
path: root/boot-env
diff options
context:
space:
mode:
authorSebastian Schmelzer2009-05-29 21:59:00 +0200
committerSebastian Schmelzer2009-05-29 21:59:00 +0200
commitfa4c01437e16df8e8caa40dc93ff79584892ebe4 (patch)
tree33fe1818626bf6ce43d6bd674c3da5fa5974e6b7 /boot-env
parenttestversion of kiosk plugin with "profiles" (diff)
downloadcore-fa4c01437e16df8e8caa40dc93ff79584892ebe4.tar.gz
core-fa4c01437e16df8e8caa40dc93ff79584892ebe4.tar.xz
core-fa4c01437e16df8e8caa40dc93ff79584892ebe4.zip
minor fixes for kiosk mode
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2910 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'boot-env')
-rwxr-xr-xboot-env/preboot/http-server/user_settings.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/boot-env/preboot/http-server/user_settings.pl b/boot-env/preboot/http-server/user_settings.pl
index f824ff20..01d53afe 100755
--- a/boot-env/preboot/http-server/user_settings.pl
+++ b/boot-env/preboot/http-server/user_settings.pl
@@ -52,6 +52,7 @@ if ($type ne "fastboot") {
mkpath($destPath."/".$client);
system(qq{tar -xzf $src -C $destPath/$client/});
+
# from here on the modifications of client configuration should take place
# within $destPath/$client directory
if ($type eq "slxconfig") {
@@ -63,15 +64,18 @@ if ($type ne "fastboot") {
}
elsif (!$type || $type eq "directkiosk") {
# deactivate the desktop plugin for the kiosk mode
- open (CFGFILE, ">$destPath/$client/initramfs/plugin-conf/desktop.conf");
+ open (CFGFILE, ">>$destPath/$client/initramfs/plugin-conf/desktop.conf");
print CFGFILE 'desktop_active="0"';
close (CFGFILE);
# activate the kiosk plugin
- if (!-e "$destPath/$client/initramfs/plugin-conf/desktop.conf") {
+ if (!-e "$destPath/$client/initramfs/plugin-conf/kiosk.conf") {
$errormsg = "The kiosk plugin seems not to be installed";
print STDERR $errormsg;
+ } else {
+ open (CFGFILE, ">>$destPath/$client/initramfs/plugin-conf/kiosk.conf");
+ print CFGFILE 'kiosk_active="1"';
+ close (CFGFILE);
}
- # open (CFGFILE, ">$destPath/$client/initramfs/plugin-conf/kiosk.conf");
}
else {
# unknown type