diff options
| author | John Crispin | 2024-11-02 19:55:53 +0000 |
|---|---|---|
| committer | John Crispin | 2024-11-02 20:23:54 +0000 |
| commit | b135064465de9fc261347d665361c3b86c2dc4f9 (patch) | |
| tree | e5238de78deb723b98dc9847188e69a6c04a786a | |
| parent | 408c2cc48e6694446c89da7f8121b399063e1067 (diff) | |
| download | fstools-b135064465de9fc261347d665361c3b86c2dc4f9.tar.gz | |
jffs2reset: print deprecation message
Signed-off-by: John Crispin <john@phrozen.org>
| -rw-r--r-- | jffs2reset.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jffs2reset.c b/jffs2reset.c index acff913..0985b3a 100644 --- a/jffs2reset.c +++ b/jffs2reset.c @@ -25,6 +25,7 @@ #include <string.h> #include <unistd.h> #include <getopt.h> +#include <libgen.h> #include <mtd/ubi-user.h> @@ -103,6 +104,10 @@ int main(int argc, char **argv) { struct volume *v; int ch, yes = 0, reset = 0, keep = 0; + + if (!strcmp(basename(argv[0]), "jffs2reset")) + ULOG_ERR("jffs2reset will be deprected, please use factoryreset going forward\n"); + while ((ch = getopt(argc, argv, "yrk")) != -1) { switch(ch) { case 'y': |