mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-24 19:19:48 +02:00
Add force-usbdevice
This commit is contained in:
1 parent
05e1872ccb
commit
be15a9b6b5
2 files changed
+6
-1
No files matched your search
+2
-1
@@ -14,6 +14,7 @@
|
||||
#include <ANSI-color-codes.h>
|
||||
|
||||
bool device_has_booted = 0;
|
||||
bool force_usbdevice = 0;
|
||||
int pongo_thr_running = 0;
|
||||
|
||||
#define ERR(...) LOG(LOG_VERBOSE, __VA_ARGS__)
|
||||
@@ -52,7 +53,7 @@ void *pongo_usb_callback(stuff_t *arg) {
|
||||
if (ramdisk_dmg_lzma_len != 0)
|
||||
#endif
|
||||
{
|
||||
// strncat(xargs_cmd, " rootdev=md0", 0x270 - strlen(xargs_cmd) - 1);
|
||||
if (force_usbdevice) strncat(xargs_cmd, " AppleEmbeddedUSBArbitrator-force-usbdevice=1", 0x270 - strlen(xargs_cmd) - 1);
|
||||
upload_pongo_file(handle, **ramdisk_to_upload, ramdisk_dmg_lzma_len);
|
||||
if ((*ramdisk_to_upload) == &ramdisk_dmg_lzma)
|
||||
issue_pongo_command(handle, "ramdisk " RAMDISK_UNCOMPRESSED_SIZE);
|
||||
|
||||
Reference in new issue
Block a user