summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/xserver/OpenSLX/Distro/Suse_10.pm
blob: f0c3ebb8ae32bd72196c9740b86d2ac28bce965f (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
# 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/Suse_10.pm
#    - provides SUSE-specific overrides of the Distro API for the xserver
#      plugin.
# -----------------------------------------------------------------------------
package xserver::OpenSLX::Distro::Suse_10;

use strict;
use warnings;

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

use File::Path;

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');
        # suse specific extension to stage3 xserver.sh
        testmkd /mnt/var/lib/xkb/compiled
        testmkd /mnt/var/X11R6/bin
        ln -s /usr/bin/Xorg /mnt/var/X11R6/bin/X
        rm /mnt/etc/X11/xdm/SuSEconfig.xdm
        # use the old kbd keyboard driver instead of evdev
        sed "s/\"evdev\"/,/\"kbd\"/" -i ${xfc}
        # relevant for older xservers only: check for kind of xorg module used
        # and patch the i8,9XX VGA BIOS if needed
        #if strinfile '"i810"' $xfc && [ -f /etc/hwinfo.display ] ; then
        #  highres=$(sort -run /etc/hwinfo.display|grep -i x -m 1)
        #  915resolution -l|sed -n "s/Mode //;/32 bits/p" > /tmp/915res
        #  strinfile ${highres} /tmp/915res || {
        #    915resolution $(grep -i x -m 1 /tmp/915res|sed "s/\ :.*//") $(echo \
        #      $highres|sed "s/x/\ /") 2>&1 >/dev/null;
        #  # for some reason the above does not work for a Dell laptop with Intel 
        #  # 855 chipset, so add another mode too
        #  915resolution 3c $(echo $highres|sed "s/x/\ /") 2>&1 >/dev/null; }
        #fi
    End-of-Here

    return $script;
}

1;