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 |
|
---|
13 | PATH=$PATH:/bin:/sbin:/usr/sbin
|
---|
14 |
|
---|
15 | # XXX only Linux so far
|
---|
16 | # XXX add support for the Solaris pkg
|
---|
17 | if test "`uname -s`" != "Linux"; then
|
---|
18 | echo "Linux not detected."
|
---|
19 | exit 1
|
---|
20 | fi
|
---|
21 |
|
---|
22 | # 32-bit or 64-bit?
|
---|
23 | path=`dirname $0`
|
---|
24 | case `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 | ;;
|
---|
35 | esac
|
---|
36 |
|
---|
37 | # execute the installer
|
---|
38 | if test -f "$path/VBoxLinuxAdditions-$arch.run"; then
|
---|
39 | exec gksu /bin/sh "$path/VBoxLinuxAdditions-$arch.run"
|
---|
40 | fi
|
---|
41 |
|
---|
42 | # else: unknown failure
|
---|
43 | echo "Linux guest additions installer not found -- try to start them manually."
|
---|
44 | exit 1
|
---|
Note:
See
TracBrowser
for help on using the repository browser.