From: José Bollo Date: Fri, 23 Jan 2015 17:34:09 +0000 (+0100) Subject: Improved mode computation X-Git-Tag: accepted/tizen/common/20150126.084353^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F48%2F34348%2F1;p=platform%2Fcore%2Fappfw%2Fvconf-buxton.git Improved mode computation This will avoid false errors during image creation. Change-Id: I299899a2c17887ad2fb5b741976f80433306189e Signed-off-by: José Bollo --- diff --git a/src/vconf-buxton-tool.sh b/src/vconf-buxton-tool.sh index 7e3611d..5a738d4 100755 --- a/src/vconf-buxton-tool.sh +++ b/src/vconf-buxton-tool.sh @@ -47,9 +47,23 @@ badargs() { } # -# calls to buxton +# detects buxton mode # buxmode= +if buxtonctl -s check >/dev/null 2>&1 +then + buxmode=-s +elif buxtonctl -d check >/dev/null 2>&1 +then + buxmode=-d +else + error "unable to detect buxton mode" + exit +fi + +# +# calls to buxton +# buxton() { buxtonctl $buxmode -- "$@" }