summaryrefslogtreecommitdiff
path: root/vnet/screen-shell.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vnet/screen-shell.sh')
-rwxr-xr-xvnet/screen-shell.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/vnet/screen-shell.sh b/vnet/screen-shell.sh
deleted file mode 100755
index fa420b9d..00000000
--- a/vnet/screen-shell.sh
+++ /dev/null
@@ -1,14 +0,0 @@
1#!/bin/sh
2ifaddr() {
3 ip -o address show dev $1 | sed -n 's#.* inet \([^ /]*\).*#\1#p'
4}
5touch window-count
6count=$(cat window-count)
7count=${count:-(-1)}
8count=$(( $count + 1 ))
9echo $count > window-count
10digit=$(printf '%X' $count)
11cd ep$digit
12port=$(( 33400 + $count ))
13pwd
14../dhtd tox=$(ifaddr ep$digit):$port,bt=,xmpp=