From: John Crispin Date: Sat, 2 Nov 2024 19:55:53 +0000 (+0100) Subject: jffs2reset: print deprecation message X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b135064465de9fc261347d665361c3b86c2dc4f9;p=project%2Ffstools.git jffs2reset: print deprecation message Signed-off-by: John Crispin --- diff --git a/jffs2reset.c b/jffs2reset.c index acff913..0985b3a 100644 --- a/jffs2reset.c +++ b/jffs2reset.c @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -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':