summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/xserver/OpenSLX/Distro/Ubuntu_8.pm
blob: 1fa884464d1a850a09227806058af279a9709875 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Copyright (c) 2008..2010 - 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_8.pm
#    - provides Ubuntu-specific overrides of the distro API for the xserver
#      plugin.
# -----------------------------------------------------------------------------
package xserver::OpenSLX::Distro::Ubuntu_8;

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
        # use the old kbd keyboard driver instead of evdev
        sed "s/\"evdev\"/,/\"kbd\"/" -i ${xfc}
        testmkd /mnt/var/run/xauth
        testmkd /mnt/var/lib/xkb
        ln -sf /usr/bin/Xorg /mnt/etc/X11/X
    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;