summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a962696)
More recent VirtualBox versions provide output like:
| 01 - automation [idRoot=0 writeable auto-mount host-icase guest-icase]
While older VirtualBox versions listed only:
| 01 - automation
Adjust the grep command line, to support old and new VBoxControl output.
This work was funded by Grml-Forensic.
vbautomation="$(getbootparam 'vbautomation' 2>>$DEBUG)"
fi
vbautomation="$(getbootparam 'vbautomation' 2>>$DEBUG)"
fi
- if ! VBoxControl sharedfolder list | egrep -q "^[0-9]+ - ${vbautomation}$" ; then
+ if ! VBoxControl sharedfolder list | egrep -q "^[0-9]+ - ${vbautomation}\s*" ; then
ewarn "No automount shared folder '$vbautomation' available"
eend 0
else
ewarn "No automount shared folder '$vbautomation' available"
eend 0
else