shithub: rc

Download patch

ref: 875962f60a6a6f7144d0aa570d28636c66e26a88
parent: 70e8a808ef01dfe87c2141c485aa8210d304cb8c
author: sl <sl@frank>
date: Thu Nov 13 20:56:55 EST 2025

rachael: add fn keepalive

--- a/rachael
+++ b/rachael
@@ -1,17 +1,20 @@
 #!/bin/rc -x
-# 2024-07-02T22:28:16-04:00
+# 2025-11-13T20:55:14-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
+	sshfs -s $host.$user.$pid -m /n/rachael -r / $user@$host && keepalive &
 case -v
 	rfork n
 	sshnet $host &&
-	window -m vncv $vnc
+	window -m vncv $vnc &&
+	keepalive &
+	
 case *
 	label $host &&
 	ssh $host $*
--