FreeCalypso > hg > freecalypso-tools
diff libpwon/forkoff.c @ 953:ab54957dbe35
libpwon: implement -Petmoff mode
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 07 Jun 2023 20:06:12 +0000 |
parents | 7d1df6d831e4 |
children |
line wrap: on
line diff
--- a/libpwon/forkoff.c Wed Jun 07 08:00:44 2023 +0000 +++ b/libpwon/forkoff.c Wed Jun 07 20:06:12 2023 +0000 @@ -5,7 +5,7 @@ #include <unistd.h> extern char bootctrl_pwon_cmd[]; -extern int bootctrl_duart28c_mode; +extern int bootctrl_duart28c_mode, bootctrl_etmoff_mode; static char shell_pathname[] = "/bin/sh"; @@ -38,5 +38,9 @@ fork_exec_pwon_cmd(); return(1); } + if (bootctrl_etmoff_mode) { + bootctrl_do_etmoff(); + return(2); + } return(0); }