summaryrefslogtreecommitdiff
path: root/data/system-cmds/shutdown.diff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-04-06 10:28:29 +0000
committerJay Freeman <saurik@saurik.com>2008-04-06 10:28:29 +0000
commitd699a01fabaa04a1aad60f6ca5777f82ee24839a (patch)
tree1eb62bad23b14a0877c5b9171f2a5f9358c8d592 /data/system-cmds/shutdown.diff
parent8a49e427447f40fdd43fc4b5f513b166dd639e2a (diff)
Drastic, sweeping modifications to support iPhone 1.2.0/2.0.
git-svn-id: http://svn.telesphoreo.org/trunk@199 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/system-cmds/shutdown.diff')
-rw-r--r--data/system-cmds/shutdown.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/data/system-cmds/shutdown.diff b/data/system-cmds/shutdown.diff
new file mode 100644
index 000000000..8526c7534
--- /dev/null
+++ b/data/system-cmds/shutdown.diff
@@ -0,0 +1,12 @@
+diff -r -u system_cmds-431/shutdown.tproj/shutdown.c system_cmds-431+iPhone/shutdown.tproj/shutdown.c
+--- system_cmds-431/shutdown.tproj/shutdown.c 2007-09-06 21:59:26.000000000 +0000
++++ system_cmds-431+iPhone/shutdown.tproj/shutdown.c 2008-02-25 22:30:51.000000000 +0000
+@@ -471,7 +471,7 @@
+ if (nosync) howto |= RB_NOSYNC;
+
+ // launchd(8) handles reboot. This call returns NULL on success.
+- exit(reboot2(howto) == NULL ? EXIT_SUCCESS : EXIT_FAILURE);
++ reboot(howto);
+ }
+ /* NOT-REACHED */
+