summaryrefslogtreecommitdiff
path: root/data/system-cmds/reboot.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/system-cmds/reboot.diff')
-rw-r--r--data/system-cmds/reboot.diff45
1 files changed, 0 insertions, 45 deletions
diff --git a/data/system-cmds/reboot.diff b/data/system-cmds/reboot.diff
deleted file mode 100644
index 4c9dc152d..000000000
--- a/data/system-cmds/reboot.diff
+++ /dev/null
@@ -1,45 +0,0 @@
-diff -ru system_cmds-431/reboot.tproj/reboot.c system_cmds-431+iPhone/reboot.tproj/reboot.c
---- system_cmds-431/reboot.tproj/reboot.c 2007-09-06 20:46:17.000000000 +0000
-+++ system_cmds-431+iPhone/reboot.tproj/reboot.c 2008-03-30 20:43:53.000000000 +0000
-@@ -63,7 +63,6 @@
- #include <mach/mach_port.h> // allocate
- #include <mach/mach.h> // task_self, etc
- #include <servers/bootstrap.h> // bootstrap
--#include <reboot2.h>
- #endif
-
- void usage(void);
-@@ -81,11 +80,9 @@
- int ch, howto, kflag, lflag, nflag, qflag, uflag;
- char *p;
- const char *user;
--#ifndef __APPLE__
- int i, fd, pflag, sverrno;
- u_int pageins;
- char *kernel;
--#endif
-
- if (strstr((p = rindex(*argv, '/')) ? p + 1 : *argv, "halt")) {
- dohalt = 1;
-@@ -240,19 +237,16 @@
- }
- #endif
-
--#ifdef __APPLE__
-- // launchd(8) handles reboot. This call returns NULL on success.
-- exit(reboot2(howto) == NULL ? EXIT_SUCCESS : EXIT_FAILURE);
--#else /* __APPLE__ */
- reboot(howto);
- /* FALLTHROUGH */
-
-+#ifndef __APPLE__
- restart:
-+#endif
- sverrno = errno;
- errx(1, "%s%s", kill(1, SIGHUP) == -1 ? "(can't restart init): " : "",
- strerror(sverrno));
- /* NOTREACHED */
--#endif /* __APPLE__ */
- }
-
- void