2013-03-16 17:54:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-11-02 01:28:58 +00:00
|
|
|
if [ "$(qvm-features dom0 service.qubes-update-check || echo 1)" != 1 ]; then
|
2014-04-11 05:04:57 +00:00
|
|
|
exit 0
|
|
|
|
fi
|
2013-03-16 17:54:00 +00:00
|
|
|
|
|
|
|
# If no updates available - exit here
|
|
|
|
qubes-dom0-update --check-only >/dev/null && exit
|
|
|
|
RETCODE=$?
|
|
|
|
|
|
|
|
if [ "$RETCODE" -ne 100 ]; then
|
|
|
|
echo "ERROR: Error checking for updates" >&2
|
|
|
|
exit $RETCODE
|
|
|
|
fi
|
|
|
|
|
2018-11-02 00:58:27 +00:00
|
|
|
qvm-features dom0 updates-available 1
|