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