[vbox-dev] Linux Additions init script bug (Linux 4.0)
Marcos Felipe Rasia de Mello
marcosfrm at gmail.com
Tue Mar 3 11:43:43 UTC 2015
And we are bitten again.
https://www.virtualbox.org/pipermail/vbox-dev/2013-August/011718.html
Suggestion (plus grep cleanup):
--- vboxadd.sh.orig 2014-05-06 07:02:16.000000000 -0300
+++ vboxadd.sh 2015-03-03 08:27:39.199344842 -0300
@@ -286,8 +286,8 @@
start()
{
begin "Starting the VirtualBox Guest Additions ";
- uname -r | grep -q -E '^2\.6|^3' 2>/dev/null &&
- ps -A -o comm | grep -q '/*udevd$' 2>/dev/null ||
+ expr `uname -r` '>=' '2.6' >/dev/null &&
+ ps -A -o comm | grep -q '/*udevd$' ||
no_udev=1
running_vboxguest || {
rm -f $dev || {
@@ -311,7 +311,7 @@
running_vboxsf || {
$MODPROBE vboxsf > /dev/null 2>&1 || {
- if dmesg | grep "vboxConnect failed" > /dev/null 2>&1; then
+ if dmesg | grep -q "vboxConnect failed"; then
fail_msg
echo "Unable to start shared folders support. Make
sure that your VirtualBox build"
echo "supports this feature."
More information about the vbox-dev
mailing list