Changeset 17241 in vbox for trunk/src/VBox/Additions/solaris/Installer/postinstall.sh
- Timestamp:
- Mar 2, 2009 11:10:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Installer/postinstall.sh
r17031 r17241 66 66 } 67 67 68 solaris64dir="amd64" 68 69 vboxadditions_path="/opt/VirtualBoxAdditions" 69 vboxadditions64_path=$vboxadditions_path/amd64 70 solaris64dir="amd64" 70 vboxadditions64_path=$vboxadditions_path/$solaris64dir 71 72 # get what ISA the guest is running 73 cputype=`isainfo -k` 74 if test "$cputype" = "amd64"; then 75 isadir=$solaris64dir 76 else 77 isadir="" 78 fi 79 vboxadditionsisa_path=$vboxadditions_path/$isadir 80 71 81 72 82 # uncompress if necessary … … 93 103 /usr/sbin/devfsadm -i vboxguest 94 104 sync 95 96 # get what ISA the guest is running97 cputype=`isainfo -k`98 isadir=""99 if test "$cputype" = "amd64"; then100 isadir="amd64"101 fi102 105 103 106 # create links … … 216 219 fi 217 220 221 # Shared Folder kernel module (different for S10 & Nevada) 222 osverstr=`uname -r` 223 vboxvfsmod="vboxvfs" 224 vboxvfsunused="vboxvfs_s10" 225 if test "$osverstr" = "5.10"; then 226 vboxvfsmod="vboxvfs_s10" 227 vboxvfsunused="vboxvfs" 228 fi 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 232 if 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 238 fi 239 240 # 32-bit shared folder module 241 if 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 247 fi 248 249 218 250 # Finalize 219 251 /usr/sbin/removef -f $PKGINST
Note:
See TracChangeset
for help on using the changeset viewer.