Skip to content

Commit

Permalink
fastbootd: Check for and run startup script if script exists
Browse files Browse the repository at this point in the history
Signed-off-by: MD Raza <raza231198@gmail.com>
Change-Id: Id2eeb59ca9161a997b239e8b58619d197dcd2093
  • Loading branch information
MD Raza authored and CaptainThrowback committed Jan 23, 2022
1 parent 550a199 commit 74ea1a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions twrp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ static void process_fastbootd_mode() {
#endif

gui_msg(Msg("fastboot_console_msg=Entered Fastboot mode..."));
// Check for and run startup script if script exists
TWFunc::check_and_run_script("/system/bin/runatboot.sh", "boot");
TWFunc::check_and_run_script("/system/bin/postfastboot.sh", "fastboot");
if (gui_startPage("fastboot", 1, 1) != 0) {
LOGERR("Failed to start fastbootd page.\n");
}
Expand Down

0 comments on commit 74ea1a7

Please sign in to comment.