postinstall.sh revision ad27e1d5e48ca41245120c331cc88b50464813ce
3600N/A# available from http://www.virtualbox.org. This file is free software;
3600N/Aif test -f "$vboxadditions32_path/VBoxClient.Z" || test -f "$vboxadditions64_path/VBoxClient.Z"; then
3600N/A if test -f "$vboxadditions32_path/VBoxClient.Z"; then
3600N/A if test -f "$vboxadditions64_path/VBoxClient.Z"; then
3600N/A # vboxguest.sh would've been installed, we just need to call it.
3600N/A /usr/sbin/installf -c none $PKGINST /dev/vboxguest=../devices/pci@0,0/pci80ee,cafe@4:vboxguest s
3600N/A if test -z "$xorgversion_long"; then
3600N/A if test -z "$vboxmouse_src"; then
3600N/A echo "Installing mouse and video drivers for X.Org $xorgversion..."
3600N/A # Determine destination paths (snv_130 and above use "/usr/lib/xorg", older use "/usr/X11/lib"
3600N/A if test ! -d $vboxmouse32_dest_base; then
3600N/A if test ! -d $vboxvideo32_dest_base; then
3600N/A if test ! -d $vboxmouse32_dest_base || test ! -d $vboxvideo32_dest_base || test ! -d $vboxmouse64_dest_base || test ! -d $vboxvideo64_dest_base; then
3600N/A if test -f "$vboxadditions32_path/$vboxmouse_src"; then
3600N/A if test -f "$vboxadditions64_path/$vboxmouse_src"; then
3667N/A if test -d "$vboxclient_dest"; then
3667N/A /usr/sbin/installf -c none $PKGINST $vboxclient_dest/vboxclient.desktop=$vboxadditions_path/vboxclient.desktop s
3667N/A if test -d "$vboxclient_dest"; then
3667N/A /usr/sbin/installf -c none $PKGINST $vboxclient_dest/1099.vboxclient=$vboxadditions_path/1099.vboxclient s
3667N/A if test -d "$vboxclient_dest"; then
3667N/A /usr/sbin/installf -c none $PKGINST $vboxclient_dest/1099.vboxclient=$vboxadditions_path/1099.vboxclient s
3600N/A# Move the appropriate module to kernel/fs & remove the unused module name from pkg and file from disk
3600N/Aif test -f "$vboxadditions64_path/$vboxfsmod"; then
3600N/Aif test -f "$vboxadditions32_path/$vboxfsmod"; then
3667N/A if test -f "/usr/lib/VBoxOGL.so"; then
3667N/A if test -x "$BOOTADMBIN"; then
3667N/A echo "## $BOOTADMBIN not found/executable. Skipped explicit boot-archive update."