autorun.sh revision 5c05c54cd707d5f7e741cd2f440a4ec062437758
#
# Sun VirtualBox
# VirtualBox Guest Additions installation script for Linux
#
# Copyrign Microsystems, Inc.
#
# Sun Microsystems, Inc.
# All rights reserved
#
exit 1
fi
# 32-bit or 64-bit?
arch='x86'
;;
arch='amd64'
;;
*)
exit 1
;;
esac
# execute the installer
if test "$ostype" = "Linux"; then
fi
# else: unknown failure
echo "Linux guest additions installer not found -- try to start them manually."
exit 1
elif test "$ostype" = "SunOS"; then
# check for combined package
if test -f "$installfile"; then
# check for pkgadd bin
if test ! -z "$found"; then
else
echo "Could not find pkgadd."
exit 1
fi
fi
# check for pfexec
if test ! -z "$found"; then
# Use su and prompt for password
echo "Could not find pfexec."
else
# check if pfexec can get the job done
userid=`$pfexecbin id -u`
if test $userid != "0"; then
# pfexec exists but user has no pfexec privileges, switch to using su and prompting password
fi
fi
# create temporary admin file for autoinstall
echo "basedir=default
runlevel=nocheck
conflict=quit
setuid=nocheck
action=nocheck
partial=quit
instance=unique
idepend=quit
rdepend=quit
space=quit
mail=
if test -f "/usr/bin/gnome-terminal"; then
if test -z "$subin"; then
/usr/bin/gnome-terminal --title "Installing VirtualBox Additions" --command "/bin/sh -c '$pfexecbin $pkgaddbin -G -d $installfile -n -a /tmp/vbox.autoinstall SUNWvboxguest; /bin/echo press ENTER to close this window; /bin/read'"
else
/usr/bin/gnome-terminal --title "Installing VirtualBox Additions: Root password required." --command "/bin/sh -c '$subin - root -c \"$pkgaddbin -G -d $installfile -n -a /tmp/vbox.autoinstall SUNWvboxguest\"; /bin/echo press ENTER to close this window; /bin/read'"
fi
else
echo "gnome-terminal not found."
fi
# remove temporary autoinstall file
exit 0
fi
echo "Solaris guest additions installer not found -- try to start them manually."
exit 1
fi