diff options
Diffstat (limited to 'os-plugins/plugins/xserver/OpenSLX/OSPlugin/xserver.pm')
-rw-r--r-- | os-plugins/plugins/xserver/OpenSLX/OSPlugin/xserver.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/os-plugins/plugins/xserver/OpenSLX/OSPlugin/xserver.pm b/os-plugins/plugins/xserver/OpenSLX/OSPlugin/xserver.pm index f0837293..67035c57 100644 --- a/os-plugins/plugins/xserver/OpenSLX/OSPlugin/xserver.pm +++ b/os-plugins/plugins/xserver/OpenSLX/OSPlugin/xserver.pm @@ -182,6 +182,7 @@ sub preInstallationPhase() # Todo: use a openslx copy function! system("cp -r $pkgpath $self->{pluginRepositoryPath}/packages"); } + } @@ -224,7 +225,13 @@ sub installationPhase } if ($attrs->{'xserver::nvidia'} == 1) { copyFile("$pluginFilesPath/nvidia-install.sh", "$installationPath"); - #system("/bin/sh /opt/openslx/plugin-repo/$self->{'name'}/nvidia-install.sh"); + system("/bin/sh /opt/openslx/plugin-repo/$self->{'name'}/nvidia-install.sh"); + } + + if ($attrs->{'xserver::nvidia'} == 1 + || $attrs->{'xserver::ati'} == 1 ) { + copyFile("$pluginFilesPath/ubuntu-gfx-install.sh", + "$installationPath"); } # Some plugins have to copy files from their plugin folder into the |