From 8ebf466d23721553b90841ef506c70b2c7c1ef44 Mon Sep 17 00:00:00 2001
From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br>
Date: Thu, 25 Feb 2010 11:07:12 -0300
Subject: [PATCH] run-config.sh: Added inventory option for generated run.sh

run-config.sh generates run.sh with inventory option verification. run.sh
calls the client with appropriate parameters in three cases: with no option,
with update option (--update) and with inventory option (--inventory).

Each one of those options determine a different client behavior. Besides
them, there is the proxy configuration, also passed as parameters to client.

Signed-off-by: Erik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br>
Acked-by: Josiney de Souza <josineys@c3sl.ufpr.br>
Acked-by: Ricardo Tavares de Oliveira <rto07@c3sl.ufpr.br>
Signed-off-by: Danilo K. S. Yorinori <danilok@c3sl.ufpr.br>
---
 run-config.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/run-config.sh b/run-config.sh
index 1fc4edb..86f2e63 100755
--- a/run-config.sh
+++ b/run-config.sh
@@ -67,6 +67,9 @@ if [[ $# == 1 && $1 == "--update" ]]; then
     retval=$?
     echo "$retstr" >> ${dirname}/run.log
     exit $retval
+elif [[ $1 == "--inventory" ]]; then
+    ${bindir}/client $1 ${url} ${inep} ${mac} ${phost} ${pport} ${puid} \
+                        ${ppasswd} >> ${dirname}/run.log 2>&1
 else
     ${bindir}/client ${url} ${inep} ${mac} ${phost} ${pport} ${puid} \
                      ${ppasswd} >> ${dirname}/run.log 2>&1
-- 
GitLab