shithub: bin.rc

ref: c240c428481aa4cd9aadeb95833161b52efc1e96
dir: /bin/raiseplumb/

View raw version
#!/bin/rc
rfork e

fn usage {
	echo $0 port >[1=2]
	exit usage
}

port=$1
if(~ $#port 0)
	usage
{
	while(read -c 1 /mnt/plumb/$port >/dev/null){
		>/dev/wctl >[2]/dev/null {
		echo -n current
		echo -n unhide
		}
	}
} &
echo -n `{cat /proc/$pid/noteid} > /proc/$apid/noteid