~ubuntu-branches/ubuntu/karmic/virtualbox-ose/karmic-updates

« back to all changes in this revision

Viewing changes to src/VBox/Additions/x11/Installer/VBoxRandR.sh

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-09-14 18:25:07 UTC
  • mfrom: (0.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090914182507-c98g07mq16hjmn6d
Tags: 3.0.6-dfsg-1ubuntu1
* Merge from debian unstable (LP: #429697), remaining changes:
  - Enable DKMS support on virtualbox host and guest modules (LP: #267097)
    - Drop virtualbox-ose{-guest,}-modules-* package templates
    - Recommend *-source instead of *-modules packages
    - Replace error messages related to missing/mismatched
      kernel module accordingly
  - Autoload kernel module
    - LOAD_VBOXDRV_MODULE=1 in virtualbox-ose.default
  - Disable update action
    - patches/u01-disable-update-action.dpatch
  - Virtualbox should go in Accessories, not in System tools (LP: #288590)
    - virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add apport hook
    - virtualbox-ose.files/source_virtualbox-ose.py
    - virtualbox-ose.install
  - Add launchpad integration
    - control
    - lpi-bug.xpm
    - patches/u02-lp-integration.dpatch
  - virtualbox, virtualbox-* (names of the upstream proprietary packages)
    conflict with virtualbox-ose (LP: #379878)
* Make debug package depend on normal or guest utils package
* Drop patches/22-pulseaudio-stubs.dpatch (applied upstream)
* Rename Ubuntu specific patches to uXX-*.dpatch
* Fix lintian warnings in maintainer scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
    xout=`$xorgbin -version 2>&1`
69
69
    if echo "$xout" | grep "1\.4\.99\.90[12345]" > /dev/null
70
70
    then
71
 
        echo "Warning: the version of the X Window system on your guest has a known"
72
 
        echo "problem. Because of this, dynamic resizing and seamless mode will not work."
 
71
        echo "Warning: the version of the X Window system on your guest has known"
 
72
        echo "problems which prevent dynamic resizing and seamless mode from working."
73
73
        echo
74
74
        exit 1
75
75
    fi
76
 
    # Check to see if the server is configured to use static modes only.
77
 
    for conf in "/etc/X11/xorg.conf-4" "/etc/X11/xorg.conf" "/etc/X11/.xorg.conf" "/etc/xorg.conf" \
78
 
                "/usr/etc/X11/xorg.conf-4" "/usr/etc/X11/xorg.conf" "/usr/lib/X11/xorg.conf-4" \
79
 
                "/usr/lib/X11/xorg.conf"
80
 
    do
81
 
        if [ -r $conf ]
82
 
        then
83
 
            if awk -v IN_SECTION=0 \
84
 
'tolower($0) ~ /^[ \t]*section/ { IN_SECTION=1 } '\
85
 
'tolower($0) ~ /^[ \t]*modes/ { if (IN_SECTION) { print "mode"; exit } } '\
86
 
'tolower($0) ~ /^[ \t]*option[ \t]+\"preferredmode\"/ { if (IN_SECTION) { print "mode"; exit } } '\
87
 
'tolower($0) ~ /endsection/ { IN_SECTION=0 }' \
88
 
                $conf 2>/dev/null | grep mode > /dev/null
89
 
            then
90
 
                echo "Disabling dynamic resizing as the X server is configured to only use static"
91
 
                echo "resolutions.  To fix this, edit the server configuration file, remove all"
92
 
                echo "\"Modes\" lines from the \"Screen\" section and any Option \"PreferredMode\""
93
 
                echo "lines from \"Monitor\" sections and restart the server."
94
 
                echo
95
 
                exit 1
96
 
            fi
97
 
        fi
98
 
    done
99
76
    # Don't write out error information in this case, as this script is also
100
77
    # called from the installer, and vboxvideo will not yet be in place yet in
101
78
    # that case.