shithub: rc

Download patch

ref: 1fd6a3738a4775ee3a326a31a750778c1d0ddda1
parent: a873d8cd5240d4156f4b0961456c29b3b685d080
author: sl <sl@frank>
date: Fri Nov 14 22:12:24 EST 2025

rachael: sshnet: touching synthetic network files fails to keep the connection alive.

--- a/rachael
+++ b/rachael
@@ -1,20 +1,17 @@
 #!/bin/rc
-# 2025-11-13T20:57:34-05:00
+# 2025-11-14T22:11:24-05:00
 rfork e
 host=rachael.inri.net
 vnc=192.168.1.202:0
-fn keepalive { while(){ touch /n/rachael/tmp/o; sleep 30 } }
 switch($1){
 case -f
 	sshfs -o idmap'='user,allow_other,uid'='1000,gid'='1000 sl@rachael.inri.net:/ /n/rachael
 case -m
-	sshfs -s $host.$user.$pid -m /n/rachael -r / $user@$host && keepalive &
+	sshfs -s $host.$user.$pid -m /n/rachael -r / $user@$host && 
+	while(){ touch /n/rachael/tmp/o; sleep 30 } &
 case -v
-	rfork n
 	sshnet $host &&
-	window -m vncv $vnc &&
-	keepalive &
-	
+		window -m vncv $vnc
 case *
 	label $host &&
 	ssh $host $*
--