add openwrt sdk
[openwrt.git] / package / openwrt / mtd.c
index a0eeb79..6771b3c 100644 (file)
@@ -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 <wbx@dass-it.de>,\n"
-       "                   Felix Fietkau <nbd@vd-s.ath.cx>\n"
-       "Documented by Mike Strates [dumpedcore] <mike@dilaudid.net>\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;
 }
This page took 0.020385 seconds and 4 git commands to generate.