aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/afm-util
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-11-17 10:08:25 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-11-24 17:44:57 +0100
commit236d2d857881d4d50da92eb4ed6d4721474806dc (patch)
tree0ecee765692cb2752c685534ce9609d5f7cbc903 /scripts/afm-util
parent711b1d544888d56261ad2c01be13034fb7f78dce (diff)
afm-util: don't reload if afm-install
Change-Id: I5c73d80ee2dd02a8d7260e8dcd5f52e8ef84b34b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'scripts/afm-util')
-rwxr-xr-xscripts/afm-util4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/afm-util b/scripts/afm-util
index 4d86218..c5e48eb 100755
--- a/scripts/afm-util
+++ b/scripts/afm-util
@@ -13,7 +13,9 @@ case "$1" in
add|install)
f=$(realpath $2)
- send install '{"wgt":"'"$f"'","force":true}'
+ r=true
+ if [[ "$(basename $0)" = "afm-install" ]]; then r=false; fi
+ send install '{"wgt":"'"$f"'","force":true,"reload":'"$r"'}'
;;
remove|uninstall)