#!/bin/bash
RZ=1
while [ $RZ -eq 1 ]; do
  /usr/bin/zypper -n up --auto-agree-with-licenses
  RC=$?
  if [ $RC -eq 7 ]; then sleep 37; else RZ=0; fi
done
test -f /tmp/check_mk-opensuse_zypper.cache && rm /tmp/check_mk-opensuse_zypper.cache
exit 0
