From 3006a8ce77dbffcd872c4886006c0e9826c568bb Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 4 Apr 2005 22:02:56 +0000 Subject: fix reboot in mtd.c git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@560 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/openwrt/mtd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/openwrt') diff --git a/package/openwrt/mtd.c b/package/openwrt/mtd.c index 645ad1180..6771b3c21 100644 --- a/package/openwrt/mtd.c +++ b/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; } -- cgit v1.2.3