VirtualBox

Changeset 9118 in vbox for trunk


Ignore:
Timestamp:
May 26, 2008 11:29:22 AM (17 years ago)
Author:
vboxsync
Message:

vboxvfs: mount all shared folders from /etc/fstab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxvfs.sh

    r9108 r9118  
    141141        }
    142142    }
     143    # Mount all shared folders from /etc/fstab. Normally this is done by some
     144    # other startup script but this requires the vboxdrv kernel module loaded.
     145    mount -a -t vboxsf
    143146    succ_msg
    144147    return 0
     
    147150stop() {
    148151    begin "Stopping VirtualBox Additions shared folder support ";
    149     if running; then
    150         rmmod $modname 2>/dev/null || fail "Cannot unload module $modname"
     152    if umount -a -t vboxsf 2>/dev/null; then
     153        if running; then
     154            rmmod $modname 2>/dev/null || fail "Cannot unload module $modname"
     155        fi
     156        succ_msg
     157    else
     158        fail "Cannot unmount vboxsf folders"
    151159    fi
    152     succ_msg
    153160    return 0
    154161}
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