~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to src/VBox/Additions/solaris/Installer/postinstall.sh

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-07-04 13:02:31 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110704130231-l843es6wqhx614n7
Tags: 4.0.10-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Add the Modaliases control field manually for maximum backportability.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
# terms and conditions of either the GPL or the CDDL or both.
23
23
#
24
24
 
 
25
LANG=C
 
26
export LANG
 
27
 
25
28
# uncompress(directory, file)
26
29
# Updates package metadata and uncompresses the file.
27
30
uncompress_file()
214
217
 
215
218
        # snv_163 drops 32-bit support completely, and uses 32-bit locations for the 64-bit stuff. Ugly.
216
219
        # We try to detect this by looking at bitness of "mouse_drv.so", and adjust our destination paths accordingly.
217
 
        bitsize=`file $vboxmouse32_dest_base/mouse_drv.so | grep "32-bit"`
218
 
        skip32="no"
 
220
        # We do not rely on using Xorg -version's ABI output because some builds (snv_162 iirc) have 64-bit ABI with
 
221
        # 32-bit file locations.
 
222
        if test -f "$vboxmouse32_dest_base/mouse_drv.so"; then
 
223
            bitsize=`file "$vboxmouse32_dest_base/mouse_drv.so" | grep -i "32-bit"`
 
224
            skip32="no"
 
225
        else
 
226
            echo "* Warning mouse_drv.so missing. Assuming Xorg ABI is 64-bit..."
 
227
        fi
 
228
 
219
229
        if test -z "$bitsize"; then
220
230
            skip32="yes"
221
231
            vboxmouse64_dest_base=$vboxmouse32_dest_base