Accepting request 263439 from home:Ledest:bashisms

fix bashisms in vmware-user-autostart-wrapper script

OBS-URL: https://build.opensuse.org/request/show/263439
OBS-URL: https://build.opensuse.org/package/show/Virtualization:VMware/open-vm-tools?expand=0&rev=276
This commit is contained in:
Dominique Leuenberger 2014-12-02 10:38:00 +00:00 committed by Git OBS Bridge
parent b2a77af88c
commit a65ade5922
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 29 19:40:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in vmware-user-autostart-wrapper script
-------------------------------------------------------------------
Wed Nov 12 10:04:48 UTC 2014 - dimstar@opensuse.org

View File

@ -6,7 +6,7 @@ SLEEP=1
unset SESSION_MANAGER
# If running systemd, skip the delay loop as starting vmblock-fuse is not enforced
if ! (file /sbin/init | grep "systemd" &>/dev/null); then
if file /sbin/init | grep -qv "systemd"; then
while [ $RETRY -lt $MAX_RETRY ]; do
@ -15,8 +15,8 @@ if ! (file /sbin/init | grep "systemd" &>/dev/null); then
else
logger "Try $RETRY/$MAX_RETRY : /var/run/vmblock-fuse/dev not available. sleeping for $SLEEP seconds"
sleep $SLEEP
RETRY=$[ $RETRY + 1 ]
SLEEP=$[ $SLEEP * 2 ]
RETRY=$(($RETRY + 1))
SLEEP=$(($SLEEP * 2))
fi
done
fi