summaryrefslogblamecommitdiffstats
path: root/os-plugins/plugins/xserver/OpenSLX/Distro/Ubuntu.pm
blob: 537ef54cbb90ebac605a369a77aee1494f99216b (plain) (tree)



































                                                                                

                                                        
                                




                   
























                                                                  
  
# Copyright (c) 2008 - OpenSLX GmbH
#
# This program is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
#
# If you have any feedback please consult http://openslx.org/feedback and
# send your suggestions, praise, or complaints to feedback@openslx.org
#
# General information about OpenSLX can be found at http://openslx.org/
# -----------------------------------------------------------------------------
# xserver/OpenSLX/Distro/Ubuntu.pm
#    - provides Ubuntu-specific overrides of the distro API for the xserver
#      plugin.
# -----------------------------------------------------------------------------
package xserver::OpenSLX::Distro::Ubuntu;

use strict;
use warnings;

use base qw(xserver::OpenSLX::Distro::Base);

use OpenSLX::Basics;
use OpenSLX::Utils;

################################################################################
### interface methods
################################################################################

sub setupXserverScript
{
    my $self     = shift;
    my $repoPath = shift;

    my $script = $self->SUPER::setupXserverScript($repoPath);

    $script .= unshiftHereDoc(<<'    End-of-Here');
        # Ubuntu specific extension to stage3 xserver.sh
        testmkd /mnt/var/run/xauth
        testmkd /mnt/var/lib/xkb
    End-of-Here

    return $script;
}


sub installNvidia
{
    my $self = shift;
    my $repopath = shift || "/opt/openslx/plugin-repo/xserver/";
    my $pkgpath = shift || "packages";

    my $distroName = $self->{engine}->distroName();

    system($repopath."/ubuntu-gfx-install.sh nvidia $distroName");
   
}

sub installAti
{
    my $self = shift;
    my $repopath = shift || "/opt/openslx/plugin-repo/xserver/";
    my $pkgpath = shift || "packages";

    my $distroName = $self->{engine}->distroName();

    system($repopath."/ubuntu-gfx-install.sh ati $distroName");
 
}

1;