[vbox-dev] Linux Additions init script bug (Linux 4.0)

Larry Finger Larry.Finger at lwfinger.net
Tue Mar 3 19:37:24 GMT 2015


On 03/03/2015 05:43 AM, Marcos Felipe Rasia de Mello wrote:
> 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$' ||

Ah, a long-term solution! :)

Seriously, is anyone going to be using VirtualBox on any version of Linux older 
than 2.6? After all, 2.6.32 is the only 2.6 kernel still being maintained at 
kernel.org.

Larry

>           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