VirtualBox

Ignore:
Timestamp:
Mar 2, 2009 11:10:54 AM (16 years ago)
Author:
vboxsync
Message:

Additions/Solaris Installer: Added Solaris 10 SharedFolder module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/Installer/postinstall.sh

    r17031 r17241  
    6666}
    6767
     68solaris64dir="amd64"
    6869vboxadditions_path="/opt/VirtualBoxAdditions"
    69 vboxadditions64_path=$vboxadditions_path/amd64
    70 solaris64dir="amd64"
     70vboxadditions64_path=$vboxadditions_path/$solaris64dir
     71
     72# get what ISA the guest is running
     73cputype=`isainfo -k`
     74if test "$cputype" = "amd64"; then
     75    isadir=$solaris64dir
     76else
     77    isadir=""
     78fi
     79vboxadditionsisa_path=$vboxadditions_path/$isadir
     80
    7181
    7282# uncompress if necessary
     
    93103/usr/sbin/devfsadm -i vboxguest
    94104sync
    95 
    96 # get what ISA the guest is running
    97 cputype=`isainfo -k`
    98 isadir=""
    99 if test "$cputype" = "amd64"; then
    100     isadir="amd64"
    101 fi
    102105
    103106# create links
     
    216219fi
    217220
     221# Shared Folder kernel module (different for S10 & Nevada)
     222osverstr=`uname -r`
     223vboxvfsmod="vboxvfs"
     224vboxvfsunused="vboxvfs_s10"
     225if test "$osverstr" = "5.10"; then
     226    vboxvfsmod="vboxvfs_s10"
     227    vboxvfsunused="vboxvfs"
     228fi
     229
     230# Move the appropriate module to kernel/fs & remove the unused module name from pkg and file from disk
     231# 64-bit shared folder module
     232if test -f "$vboxadditions64_path/$vboxvfsmod"; then
     233    /usr/sbin/installf -c none $PKGINST "usr/kernel/fs/$solaris64dir/vboxvfs" f
     234    mv -f $vboxadditions64_path/$vboxvfsmod /usr/kernel/fs/$solaris64dir/vboxvfs
     235    /usr/sbin/removef $PKGINST $vboxadditions64_path/$vboxvfsmod 1>/dev/null
     236    /usr/sbin/removef $PKGINST $vboxadditions64_path/$vboxvfsunused 1>/dev/null
     237    rm -f $vboxadditions64_path/$vboxvfsunused
     238fi
     239
     240# 32-bit shared folder module
     241if test -f "$vboxadditions_path/$vboxvfsmod"; then
     242    /usr/sbin/installf -c none $PKGINST "usr/kernel/fs/vboxvfs" f
     243    mv -f $vboxadditions_path/$vboxvfsmod /usr/kernel/fs/vboxvfs
     244    /usr/sbin/removef $PKGINST $vboxadditions_path/$vboxvfsmod 1>/dev/null
     245    /usr/sbin/removef $PKGINST $vboxadditions_path/$vboxvfsunused 1>/dev/null
     246    rm -f $vboxadditions_path/$vboxvfsunused
     247fi
     248
     249
    218250# Finalize
    219251/usr/sbin/removef -f $PKGINST
Note: See TracChangeset for help on using the changeset viewer.

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