VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/installer/autorun.sh@ 18703

Last change on this file since 18703 was 18377, checked in by vboxsync, 16 years ago

Linux additions: add a simple autorun.sh file to make the Ubuntu 8.10 autorunner happy

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 816 bytes
Line 
1#!/bin/sh
2#
3# Sun VirtualBox
4# VirtualBox Guest Additions installation script for Linux
5
6#
7# Copyrign Microsystems, Inc.
8#
9# Sun Microsystems, Inc.
10# All rights reserved
11#
12
13PATH=$PATH:/bin:/sbin:/usr/sbin
14
15# XXX only Linux so far
16# XXX add support for the Solaris pkg
17if test "`uname -s`" != "Linux"; then
18 echo "Linux not detected."
19 exit 1
20fi
21
22# 32-bit or 64-bit?
23path=`dirname $0`
24case `uname -m` in
25 i[3456789]86|x86)
26 arch='x86'
27 ;;
28 x86_64|amd64|AMD64)
29 arch='amd64'
30 ;;
31 *)
32 echo "Unknown architecture `uname -m`."
33 exit 1
34 ;;
35esac
36
37# execute the installer
38if test -f "$path/VBoxLinuxAdditions-$arch.run"; then
39 exec gksu /bin/sh "$path/VBoxLinuxAdditions-$arch.run"
40fi
41
42# else: unknown failure
43echo "Linux guest additions installer not found -- try to start them manually."
44exit 1
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette