X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/28188a9b0c88b7c94f07a78ba4cc8dbdb3e3bf5a..62f204e188672e6a63b19b6994d230da5c019953:/package/openwrt/mtd.c diff --git a/package/openwrt/mtd.c b/package/openwrt/mtd.c index a0eeb79b4..6771b3c21 100644 --- a/package/openwrt/mtd.c +++ b/package/openwrt/mtd.c @@ -259,12 +259,6 @@ int main (int argc, char **argv) boot = 0; unlock = 0; - printf("mtd: Modify data within a Memory Technology Device.\n" - "Copyright (C) 2005 Waldemar Brodkorb ,\n" - " Felix Fietkau \n" - "Documented by Mike Strates [dumpedcore] \n" - "mtd has ABSOLUTELY NO WARRANTY and is licensed under the GNU GPL.\n\n"); - while ((ch = getopt(argc, argv, "ure:")) != -1) switch (ch) { case 'u': @@ -330,7 +324,7 @@ int main (int argc, char **argv) } if (boot) - reboot(0); + kill(1, 15); // send SIGTERM to init for reboot return 0; }