Ticket #4924: vboxadd-mount.patch
| File vboxadd-mount.patch, 885 bytes (added by , 15 years ago) |
|---|
-
/etc/init.d/vboxadd
old new start() 245 245 246 246 # Mount all shared folders from /etc/fstab. Normally this is done by some 247 247 # other startup script but this requires the vboxdrv kernel module loaded. 248 mount -a -t vboxsf 248 for i in $( grep vboxsf /etc/fstab | awk '{print $2}' ) ; do 249 mount $i 250 done 249 251 250 252 succ_msg 251 253 return 0 … … start() 254 256 stop() 255 257 { 256 258 begin "Stopping VirtualBox Additions "; 257 if !umount -a -t vboxsf 2>/dev/null; then 258 fail "Cannot unmount vboxsf folders" 259 fi 259 for i in $( grep vboxsf /proc/mounts | awk '{print $2}' ) ; do 260 umount -f $i 261 done 262 260 263 if [ -n "$BUILDVBOXVFS" ]; then 261 264 if running_vboxvfs; then 262 265 rmmod vboxvfs 2>/dev/null || fail "Cannot unload module vboxvfs"

