Quick mod to enable option -a for ifconfig.
[oweals/busybox.git] / init / reboot.c
index ef2a848ee467cd31cb251e71218036fbacbf31fb..3e5f2382c1cf363e1205e5452f4fa08598c21486 100644 (file)
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <signal.h>
 
 extern int reboot_main(int argc, char **argv)
 {
+#ifdef BB_FEATURE_LINUXRC
        /* don't assume init's pid == 1 */
-       exit(kill(findInitPid(), SIGINT));
+       return(kill(*(find_pid_by_name("init")), SIGINT));
+#else
+       return(kill(1, SIGINT));
+#endif
 }
+
+/*
+Local Variables:
+c-file-style: "linux"
+c-basic-offset: 4
+tab-width: 4
+End:
+*/