Advertisement
Guest User

Untitled

a guest
Mar 13th, 2016
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.89 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. #
  3. # Copyright 2005-2008 VMware, Inc.  All rights reserved.
  4. #
  5. # Wrapper for the real 'vmplayer' binary. Ensure that the
  6. # binary will find all the shared libraries it needs. If a shared
  7. # library is not available from any of the standard system-wide
  8. # locations, we provide it from the location where the VMware software
  9. # is installed.
  10. #
  11.  
  12. set -e
  13.  
  14. ETCDIR=/etc/vmware
  15. . $ETCDIR/bootstrap
  16.  
  17. export PRODUCT_NAME="VMware Player"
  18. libdir="$LIBDIR"/vmware
  19.  
  20. . "$libdir"/scripts/util.sh
  21.  
  22. # If there are command line arguments like -version, launch the binary without
  23. # checking configuration state or running the module updater.
  24. if echo "$1" | grep -q "^-"; then
  25.    launch_binary "$libdir" "vmplayer" "$@"
  26. fi
  27.  
  28. if "$BINDIR"/vmware-modconfig --appname="VMware Player" --icon="vmware-player" &&
  29.    /sbin/modinfo vmmon; then
  30.    launch_binary "$libdir" "vmplayer" "$@"
  31. fi
  32.  
  33. exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement