add openwrt sdk
[openwrt.git] / package / openwrt / mtd.c
index 645ad11..6771b3c 100644 (file)
@@ -324,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.027638 seconds and 4 git commands to generate.