diff libpwon/readconf.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/readconf.c	Wed Jun 07 08:00:44 2023 +0000
+++ b/libpwon/readconf.c	Wed Jun 07 20:06:12 2023 +0000
@@ -9,6 +9,7 @@
 #define	MAX_BOOTCTRL_CONF_LINE	510
 
 char bootctrl_pwon_cmd[MAX_BOOTCTRL_CONF_LINE+1];
+int bootctrl_etmoff_mode;
 
 find_bootctrl_entry(soughtname)
 	char *soughtname;
@@ -20,6 +21,10 @@
 
 	if (bootctrl_check_duart28c(soughtname))
 		return(0);
+	if (!strcmp(soughtname, "etmoff")) {
+		bootctrl_etmoff_mode = 1;
+		return(0);
+	}
 	inf = fopen(conf_file_pathname, "r");
 	if (!inf) {
 		perror(conf_file_pathname);