diff options
author | Sebastian Schmelzer | 2009-05-29 21:59:00 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2009-05-29 21:59:00 +0200 |
commit | fa4c01437e16df8e8caa40dc93ff79584892ebe4 (patch) | |
tree | 33fe1818626bf6ce43d6bd674c3da5fa5974e6b7 /boot-env | |
parent | testversion of kiosk plugin with "profiles" (diff) | |
download | core-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-x | boot-env/preboot/http-server/user_settings.pl | 10 |
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 |