From a65ade5922a780473a77fbdd11e3d9009c6dce60a1f114c240ac426dc91b4756 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 2 Dec 2014 10:38:00 +0000 Subject: [PATCH] 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 --- open-vm-tools.changes | 5 +++++ vmware-user-autostart-wrapper | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/open-vm-tools.changes b/open-vm-tools.changes index 0232536..7857079 100644 --- a/open-vm-tools.changes +++ b/open-vm-tools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 29 19:40:00 UTC 2014 - Led + +- fix bashisms in vmware-user-autostart-wrapper script + ------------------------------------------------------------------- Wed Nov 12 10:04:48 UTC 2014 - dimstar@opensuse.org diff --git a/vmware-user-autostart-wrapper b/vmware-user-autostart-wrapper index 78dc255..00bba23 100644 --- a/vmware-user-autostart-wrapper +++ b/vmware-user-autostart-wrapper @@ -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