From: Felix Fietkau Date: Mon, 4 Apr 2005 22:02:56 +0000 (+0000) Subject: fix reboot in mtd.c X-Git-Tag: reboot~33152 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=93897af0b71d9de85c49a402e86ed4eb5308bc89;p=openwrt%2Fstaging%2Fjogo.git fix reboot in mtd.c SVN-Revision: 560 --- diff --git a/openwrt/package/openwrt/mtd.c b/openwrt/package/openwrt/mtd.c index 645ad11809..6771b3c217 100644 --- a/openwrt/package/openwrt/mtd.c +++ b/openwrt/package/openwrt/mtd.c @@ -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; }