put iPad into deepsleep as power off doesn't work

This commit is contained in:
matthias.ringwald 2010-05-24 14:29:29 +00:00
parent 018346b56c
commit db69bfd901

View File

@ -386,8 +386,14 @@ static int iphone_on (void *transport_config){
} }
static int iphone_off (void *config){ static int iphone_off (void *config){
// power off char *machine = get_machine_name();
system ("echo \"power off\n quit\" | BlueTool"); if (strncmp(machine, "iPad", strlen("iPad,")) == 0) {
// put iPad into deep sleep
system ("echo \"wake off\n quit\" | BlueTool");
} else {
// power off for iPhone and iPod
system ("echo \"power off\n quit\" | BlueTool");
}
return 0; return 0;
} }