Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca85df06 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Support "fastboot reboot bootloader".

This matches the more general adb syntax, though the fastboot
protocol doesn't support rebooting into the recovery image.

Change-Id: I6d93d4c63d4a9b81c71e681e7a7bf76867fba019
parent 5329d3fd
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -300,7 +300,7 @@ void usage(void)
            "                                           flash it\n"
            "  devices                                  list all connected devices\n"
            "  continue                                 continue with autoboot\n"
            "  reboot                                   reboot device normally\n"
            "  reboot [bootloader]                      reboot device, optionally into bootloader\n"
            "  reboot-bootloader                        reboot device into bootloader\n"
            "  help                                     show this help message\n"
            "\n"
@@ -1153,6 +1153,14 @@ int main(int argc, char **argv)
        } else if(!strcmp(*argv, "reboot")) {
            wants_reboot = 1;
            skip(1);
            if (argc > 0) {
                if (!strcmp(*argv, "bootloader")) {
                    wants_reboot = 0;
                    wants_reboot_bootloader = 1;
                    skip(1);
                }
            }
            require(0);
        } else if(!strcmp(*argv, "reboot-bootloader")) {
            wants_reboot_bootloader = 1;
            skip(1);