Add snort package, with experimental -custom package for build-time package customiza...
[openwrt.git] / package / openwrt / mtd.c
index a0eeb79b4e60edb8b0e4054b75cc049db2f2c5b6..6771b3c2175305a24ad62d438cd8bfac2237d07b 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;
 }