You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
347 B
17 lines
347 B
#!/bin/bash
|
|
|
|
if [ "$(qvm-features dom0 service.qubes-update-check || echo 1)" != 1 ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# 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
|
|
|
|
qvm-features dom0 updates-available 1
|