uxc: fix 'stop' command
authorDaniel Golle <daniel@makrotopia.org>
Mon, 13 Jul 2020 09:10:05 +0000 (10:10 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 13 Jul 2020 11:14:49 +0000 (12:14 +0100)
The 'stop' command was requesting an invalid ubus method. Fix method
name to make 'stop' operation work.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
uxc.c

diff --git a/uxc.c b/uxc.c
index 6013637da666b8f35699f33d164a1a5638f675cb..a0a670623b7a48e6d6fef0d970fc90abdc810d04 100644 (file)
--- a/uxc.c
+++ b/uxc.c
@@ -360,7 +360,7 @@ static int uxc_stop(char *name)
 
        ret = 0;
        if (ubus_lookup_id(ctx, "container", &id) ||
-               ubus_invoke(ctx, id, "del", req.head, NULL, NULL, 3000)) {
+               ubus_invoke(ctx, id, "delete", req.head, NULL, NULL, 3000)) {
                ret = EIO;
        }