shithub: riscv

Download patch

ref: f03556a76343783be1873dc39d57b63e37c07dc1
parent: 0541a434cb9cfd1a776f1ef29de3a8a7aa1d9b99
author: Jacob Moody <[email protected]>
date: Thu Aug 4 19:04:24 EDT 2022

rio: show Exit in subrios

--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -124,7 +124,7 @@
 	Image *i;
 	Rectangle r;
 
-	if(strstr(argv[0], ".out") == nil){
+	if(access("/dev/wctl", AEXIST) != 0){
 		menu3str[Exit] = nil;
 		Hidden--;
 	}