shithub: riscv

ref: 543e6478226a896bfff8e749c53dc41cfc42ed4d
dir: /rc/bin/aanuke/

View raw version
#!/bin/rc
rfork e
for(i in `{psu | awk '/[ ]+aan$/ {print $2}'}){
	if(! grep -s -e '[ ]+\/net(\.alt)?\/tcp\/[0-9]+\/data$' /proc/$i/fd)
		echo '@{echo kill>/proc/'$i'/note} # aan (idle)'
}