diff options
author | Jonathan Bauer | 2017-05-18 12:59:16 +0200 |
---|---|---|
committer | Jonathan Bauer | 2017-05-18 12:59:16 +0200 |
commit | 8bba9a794cf6ed99851e40ed1b3bb8fe15fdc75c (patch) | |
tree | 3cdaee3930765c9b58db313c3902b91852d2c602 /core/modules/vmware | |
parent | [run-virt] Improve wget error messages (diff) | |
download | mltk-8bba9a794cf6ed99851e40ed1b3bb8fe15fdc75c.tar.gz mltk-8bba9a794cf6ed99851e40ed1b3bb8fe15fdc75c.tar.xz mltk-8bba9a794cf6ed99851e40ed1b3bb8fe15fdc75c.zip |
[vmware] add sanity check on /dev/vmmon...
Diffstat (limited to 'core/modules/vmware')
-rw-r--r-- | core/modules/vmware/data/opt/openslx/vmchooser/plugins/vmware/includes/init_core.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/modules/vmware/data/opt/openslx/vmchooser/plugins/vmware/includes/init_core.inc b/core/modules/vmware/data/opt/openslx/vmchooser/plugins/vmware/includes/init_core.inc index 9155c9ea..85fafc9f 100644 --- a/core/modules/vmware/data/opt/openslx/vmchooser/plugins/vmware/includes/init_core.inc +++ b/core/modules/vmware/data/opt/openslx/vmchooser/plugins/vmware/includes/init_core.inc @@ -2,7 +2,15 @@ ####################################################################### # Include: Declaration of core functions and variables of this plugin # ####################################################################### -# This core include just executes stuff! No post source calls! +# This core include just runs commands directly + +## Sanity checks for systemd-vmware_env +# /dev/vmmon should exist, missing vmnet's does not make vmplayer crash +if [ ! -c /dev/vmmon ]; then + # would cause vmplayer to crash, so abort + EXIT_TYPE="internal" EXIT_REASON="VMWare wurde nicht richtig initialisiert!" cleanexit 1 +fi + # For now define helpers here, maybe use a dedicated include later on vmw_cap_hw_version() { [ -z "$1" ] && writelog "cap_hw_version called without parameter!" && return 1 |