afm-util: report correctly error status of dbus-send
[src/app-framework-main.git] / scripts / afm-util
index eb800d9..9313b50 100755 (executable)
@@ -20,6 +20,7 @@ send() {
                org.AGL.afm.user.$1 \
                "string:$2" |
        pretty
+       return ${PIPESTATUS[0]}
 }
 
 case "$1" in
@@ -52,6 +53,11 @@ case "$1" in
     send start "\"$i\""
     ;;
 
+  run-remote|start-remote)
+    i=$2
+    send start '{"id":"'"$i"'","mode":"remote"}'
+    ;;
+
   once)
     i=$2
     send once "\"$i\""