VirtualBox

Ignore:
Timestamp:
Mar 9, 2009 2:47:32 PM (16 years ago)
Author:
vboxsync
Message:

Additions/Solaris: Renamed vboxvfs to vboxfs.

Location:
trunk/src/VBox/Additions/solaris/Installer
Files:
3 edited

Legend:

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

    r17241 r17579  
    8181filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxguest.conf=vboxguest.conf"'    '$3 = "usr/kernel/drv/vboxguest.conf=vboxguest.conf"'
    8282
    83 # 32-bit vboxvfs
    84 #filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxvfs=vboxvfs"'                  '$3 = "usr/kernel/fs/vboxvfs=vboxvfs"; $6="sys"'
    85 
    86 # 64-bit vboxvfs
    87 #filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/amd64/vboxvfs=amd64/vboxvfs"'      '$3 = "usr/kernel/fs/amd64/vboxvfs=amd64/vboxvfs"; $6="sys"'
    88 
    8983# vboxvfsmount binary (always 32-bit on combined package)
    9084filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxvfsmount=vboxvfsmount"'         '$3 = "etc/fs/vboxvfs/mount=vboxvfsmount"; $6="sys"'
  • trunk/src/VBox/Additions/solaris/Installer/postinstall.sh

    r17283 r17579  
    221221# Shared Folder kernel module (different for S10 & Nevada)
    222222osverstr=`uname -r`
    223 vboxvfsmod="vboxvfs"
    224 vboxvfsunused="vboxvfs_s10"
     223vboxfsmod="vboxfs"
     224vboxfsunused="vboxfs_s10"
    225225if test "$osverstr" = "5.10"; then
    226     vboxvfsmod="vboxvfs_s10"
    227     vboxvfsunused="vboxvfs"
     226    vboxfsmod="vboxfs_s10"
     227    vboxfsunused="vboxfs"
    228228fi
    229229
    230230# Move the appropriate module to kernel/fs & remove the unused module name from pkg and file from disk
    231231# 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
     232if test -f "$vboxadditions64_path/$vboxfsmod"; then
     233    /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/$solaris64dir/vboxfs" f
     234    mv -f $vboxadditions64_path/$vboxfsmod /usr/kernel/fs/$solaris64dir/vboxfs
     235    /usr/sbin/removef $PKGINST $vboxadditions64_path/$vboxfsmod 1>/dev/null
     236    /usr/sbin/removef $PKGINST $vboxadditions64_path/$vboxfsunused 1>/dev/null
     237    rm -f $vboxadditions64_path/$vboxfsunused
    238238fi
    239239
    240240# 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
     241if test -f "$vboxadditions_path/$vboxfsmod"; then
     242    /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/vboxfs" f
     243    mv -f $vboxadditions_path/$vboxfsmod /usr/kernel/fs/vboxfs
     244    /usr/sbin/removef $PKGINST $vboxadditions_path/$vboxfsmod 1>/dev/null
     245    /usr/sbin/removef $PKGINST $vboxadditions_path/$vboxfsunused 1>/dev/null
     246    rm -f $vboxadditions_path/$vboxfsunused
    247247fi
    248248
  • trunk/src/VBox/Additions/solaris/Installer/vboxguest.sh

    r17031 r17579  
    2020SILENTUNLOAD=""
    2121MODNAME="vboxguest"
    22 VFSMODNAME="vboxvfs"
     22VFSMODNAME="vboxfs"
    2323MODDIR32="/usr/kernel/drv"
    2424MODDIR64=$MODDIR32/amd64
     
    6969}
    7070
    71 vboxvfs_loaded()
     71vboxfs_loaded()
    7272{
    7373    module_loaded $VFSMODNAME
     
    109109}
    110110
    111 start_vboxvfs()
    112 {
    113     if vboxvfs_loaded; then
     111start_vboxfs()
     112{
     113    if vboxfs_loaded; then
    114114        info "VirtualBox FileSystem kernel module already loaded."
    115115    else
    116116        /usr/sbin/modload -p fs/$VFSMODNAME || abort "Failed to load VirtualBox FileSystem kernel module."
    117         if test ! vboxvfs_loaded; then
     117        if test ! vboxfs_loaded; then
    118118            abort "Failed to load VirtualBox FileSystem kernel module."
    119119        else
     
    123123}
    124124
    125 stop_vboxvfs()
    126 {
    127     if vboxvfs_loaded; then
    128         vboxvfs_mod_id=`/usr/sbin/modinfo | grep $VFSMODNAME | cut -f 1 -d ' ' `
    129         if test -n "$vboxvfs_mod_id"; then
    130             /usr/sbin/modunload -i $vboxvfs_mod_id || abort "Failed to unload VirtualBox FileSystem module."
     125stop_vboxfs()
     126{
     127    if vboxfs_loaded; then
     128        vboxfs_mod_id=`/usr/sbin/modinfo | grep $VFSMODNAME | cut -f 1 -d ' ' `
     129        if test -n "$vboxfs_mod_id"; then
     130            /usr/sbin/modunload -i $vboxfs_mod_id || abort "Failed to unload VirtualBox FileSystem module."
    131131            info "VirtualBox FileSystem kernel module unloaded."
    132132        fi
     
    163163stop_all()
    164164{
    165     stop_vboxvfs
     165    stop_vboxfs
    166166    stop_module
    167167    return 0
     
    195195    ;;
    196196vfsstart)
    197     start_vboxvfs
     197    start_vboxfs
    198198    ;;
    199199vfsstop)
    200     stop_vboxvfs
     200    stop_vboxfs
    201201    ;;
    202202*)
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