X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2Fafm-util;h=9df5284c312907a210a91c97e708f7d2142f44f7;hb=fcc925c4a6d7bc82106f6c8da13b1a58a7b23115;hp=60434a7410633c1a079e110470d668ed4b29d22b;hpb=2ddd0a58dae834f173277e51488f6ba30f1cad6a;p=src%2Fapp-framework-main.git diff --git a/scripts/afm-util b/scripts/afm-util index 60434a7..9df5284 100755 --- a/scripts/afm-util +++ b/scripts/afm-util @@ -52,6 +52,16 @@ case "$1" in send start "\"$i\"" ;; + run-remote|start-remote) + i=$2 + send start '{"id":"'"$i"'","mode":"remote"}' + ;; + + once) + i=$2 + send once "\"$i\"" + ;; + terminate|kill) i=$2 send terminate "$i" @@ -59,12 +69,12 @@ case "$1" in stop|pause) i=$2 - send stop "$i" + send pause "$i" ;; resume|continue) i=$2 - send continue "$i" + send resume "$i" ;; state|status) @@ -96,17 +106,19 @@ The commands are: run id start id start an instance of the widget of id + once id run once an instance of the widget of id + kill rid - terminate rid terminate the running instance rid + terminate rid terminate the running instance rid stop rid - pause rid stop the running instance rid + pause rid pause the running instance rid resume rid - continue rid continue the previously rid + continue rid continue the previously paused rid status rid - state rid get status of the running instance rid + state rid get status of the running instance rid EOC ;;