]> pilppa.com Git - uci.git/commitdiff
fix uci delete
authorFelix Fietkau <nbd@pi.lan>
Fri, 22 Aug 2008 20:03:22 +0000 (22:03 +0200)
committerFelix Fietkau <nbd@pi.lan>
Fri, 22 Aug 2008 20:03:22 +0000 (22:03 +0200)
cli.c

diff --git a/cli.c b/cli.c
index b7071a11c3874dff8fbbcf19ce7629e35704593f..46da45af1a52f9f0119687d3b86d9efd9abb1057 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -470,7 +470,8 @@ static int uci_cmd(int argc, char **argv)
                cmd = CMD_RENAME;
        else if (!strcasecmp(argv[0], "revert"))
                cmd = CMD_REVERT;
-       else if (!strcasecmp(argv[0], "del"))
+       else if (!strcasecmp(argv[0], "del") ||
+                !strcasecmp(argv[0], "delete"))
                cmd = CMD_DEL;
        else if (!strcasecmp(argv[0], "import"))
                cmd = CMD_IMPORT;