From 84a9d12c4872bfab9a04c356456935a6ccf72556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 11 Apr 2014 07:04:57 +0200 Subject: [PATCH] dom0-updates: add flag file for disabling update check (#800) --- dom0-updates/qubes-dom0-updates.cron | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom0-updates/qubes-dom0-updates.cron b/dom0-updates/qubes-dom0-updates.cron index 1fba015..9f47753 100755 --- a/dom0-updates/qubes-dom0-updates.cron +++ b/dom0-updates/qubes-dom0-updates.cron @@ -5,6 +5,11 @@ LOCAL_USER=`users | sed -e 's/root *//' | cut -d' ' -f 1` PIDFILE=/var/run/qubes/dom0-update-notification.pid NOTIFY_ICON=/usr/share/qubes/icons/dom0-update-avail.svg UPDATES_STAT_FILE=/var/lib/qubes/updates/dom0-updates-available +UPDATES_DISABLE_FLAG=/var/lib/qubes/updates/disable-updates + +if [ -f "$UPDATES_DISABLE_FLAG" ]; then + exit 0 +fi # Do not allow multiple instances [ -r $PIDFILE ] && kill -0 `cat $PIDFILE` && exit 0