From 9395ea239c7e4ae9669a7b481cd993d17e13041a Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Mon, 12 Sep 2011 14:57:38 +0200 Subject: [PATCH] dom0: qvm-dom0-update --help (#349) --- dom0/qvm-tools/qvm-dom0-update | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-tools/qvm-dom0-update b/dom0/qvm-tools/qvm-dom0-update index 6cd40254..fa5bfda0 100755 --- a/dom0/qvm-tools/qvm-dom0-update +++ b/dom0/qvm-tools/qvm-dom0-update @@ -1,12 +1,22 @@ #!/bin/bash - UPDATEVM=`qvm-get-updatevm` if [ -z "$UPDATEVM" ]; then echo "UpdateVM not set, exiting" exit 1 fi +if [ "$1" = "--help" ]; then + echo "This tool is used to download packages for dom0. Without package list" + echo "it checks for updates for installed packages" + echo "" + echo "Usage: $0 [--clean] []" + echo " --clean clean yum cache before doing anything" + echo " download (and install if run by root) new packages" + echo " in dom0 instead of updating" + exit +fi + # We should ensure the clocks in Dom0 and UpdateVM are in sync # becuase otherwise yum might complain about future timestamps qvm-sync-dom0-clock