mitchellh/vagrant — Issue #777: NixOS VBox.sh wrapper script confuses the VirtualBox version check
Author: coreyoconnor
Created: 2012-03-07 01:43:37+00:00
State: open

See the shell script here:
https://nixos.org/repos/nix/nixpkgs/trunk/pkgs/applications/virtualization/virtualbox/VBox.sh

````diff
--- pkgs/applications/virtualization/virtualbox/VBox.sh (revision 32610)
+++ pkgs/applications/virtualization/virtualbox/VBox.sh (working copy)
@@ -14,8 +14,6 @@
exit 1
fi

-echo "/dev/vboxdrv exists and $USER can access it."
-
SERVER_PID=$(ps -U $USER | grep VBoxSVC | awk '{ print $1 }')
if [ "$1" = "shutdown" ]; then
if [ -n "$SERVER_PID" ]; then
@@ -60,7 +58,4 @@
exit 1
fi

-echo "VBoxSVC is running for user $USER with PID $SERVER_PID."
-
-echo "Starting $EXEC_APP."
exec "$EXEC_APP" "$@"
```