Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- #
- # Copyright 2005-2008 VMware, Inc. All rights reserved.
- #
- # Wrapper for the real 'vmplayer' binary. Ensure that the
- # binary will find all the shared libraries it needs. If a shared
- # library is not available from any of the standard system-wide
- # locations, we provide it from the location where the VMware software
- # is installed.
- #
- set -e
- ETCDIR=/etc/vmware
- . $ETCDIR/bootstrap
- export PRODUCT_NAME="VMware Player"
- libdir="$LIBDIR"/vmware
- . "$libdir"/scripts/util.sh
- # If there are command line arguments like -version, launch the binary without
- # checking configuration state or running the module updater.
- if echo "$1" | grep -q "^-"; then
- launch_binary "$libdir" "vmplayer" "$@"
- fi
- if "$BINDIR"/vmware-modconfig --appname="VMware Player" --icon="vmware-player" &&
- /sbin/modinfo vmmon; then
- launch_binary "$libdir" "vmplayer" "$@"
- fi
- exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement