ref: 6dbca8e2f85408be9486a3145f74bb0c3d2e46e1
parent: 783e250a79a1134586e8f61e6785c4e1f7a7b1b2
author: glenda <glenda@9front.local>
date: Wed Apr 13 16:59:28 EDT 2022
label bug fix
--- a/cpu.c
+++ b/cpu.c
@@ -26,7 +26,7 @@
static int aanto = 3600 * 24;
static int norcpu;
static int nokbd;
-static int nogfx;
+int nogfx;
static char *ealgs = "rc4_256 sha1";
--- a/kern/devcons.c
+++ b/kern/devcons.c
@@ -66,6 +66,8 @@
static int writetime(char*, int);
static int writebintime(char*, int);
+extern int nogfx;
+
enum
{
CMreboot,
@@ -657,7 +659,10 @@
case Qlabel:
if (n > sizeof tmp)
n = sizeof tmp;
- n = titleread(tmp, n);
+ if (nogfx)
+ n = 0;
+ else
+ n = titleread(tmp, n);
return readstr((ulong)offset, buf, n, tmp);
case Qosversion:
@@ -795,7 +800,8 @@
break;
case Qlabel:
- titlewrite(a, n);
+ if (!nogfx)
+ titlewrite(a, n);
break;
default: