summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
Diffstat (limited to 'rc')
-rwxr-xr-xrc/bin/aanuke6
1 files changed, 6 insertions, 0 deletions
diff --git a/rc/bin/aanuke b/rc/bin/aanuke
new file mode 100755
index 000000000..efafa29c4
--- /dev/null
+++ b/rc/bin/aanuke
@@ -0,0 +1,6 @@
+#!/bin/rc
+rfork e
+for(i in `{ps | grep -e '[ ]+aan$' | awk '{print $2}'}){
+ if(! grep -s -e '[ ]+\/net\/tcp\/[0-9]+\/data$' /proc/$i/fd)
+ echo '@{echo kill>/proc/'$i'/note} # aan (idle)'
+}