Dominique Leuenberger
d65db4847f
OBS-URL: https://build.opensuse.org/package/show/Virtualization:VMware/open-vm-tools?expand=0&rev=243
20 lines
361 B
Bash
20 lines
361 B
Bash
#!/bin/sh
|
|
MAX_RETRY=8
|
|
RETRY=0
|
|
SLEEP=1
|
|
|
|
unset SESSION_MANAGER
|
|
|
|
while [ $RETRY -lt $MAX_RETRY ]; do
|
|
|
|
if [ -f /var/run/vmblock-fuse/dev ]; then
|
|
/usr/bin/vmware-user-suid-wrapper
|
|
exit 0
|
|
else
|
|
logger "Try $RETRY/$MAX_RETRY : /proc/fs/vmblock/dev not available. sleeping for $SLEEP seconds"
|
|
sleep $SLEEP
|
|
RETRY=$[ $RETRY + 1 ]
|
|
SLEEP=$[ $SLEEP * 2 ]
|
|
fi
|
|
done
|