aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/afm-util
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-11-14 11:43:46 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-11-14 13:54:22 +0100
commita1f7f7d2cd79c9391368d0c017452566a5edc44c (patch)
treee1f507900d7526fec3a3cf3c73671d8260045ad4 /scripts/afm-util
parentb6ac54640c918aecaf2f28edf82f8217154b12f3 (diff)
afm-user-daemon: Adds method "once"
Adds the method "once" that is intended to start an application in local mode if it doesn't already run. Returns the state of the running application. Change-Id: I4dfff06fa2d3e95f13a2436a2f1af9174799ddcf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'scripts/afm-util')
-rwxr-xr-xscripts/afm-util7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/afm-util b/scripts/afm-util
index 243b43c..eb800d9 100755
--- a/scripts/afm-util
+++ b/scripts/afm-util
@@ -52,6 +52,11 @@ case "$1" in
send start "\"$i\""
;;
+ once)
+ i=$2
+ send once "\"$i\""
+ ;;
+
terminate|kill)
i=$2
send terminate "$i"
@@ -96,6 +101,8 @@ 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