From fa4c01437e16df8e8caa40dc93ff79584892ebe4 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Fri, 29 May 2009 19:59:00 +0000 Subject: minor fixes for kiosk mode git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2910 95ad53e4-c205-0410-b2fa-d234c58c8868 --- boot-env/preboot/http-server/user_settings.pl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'boot-env/preboot/http-server') 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 -- cgit v1.2.3-55-g7522