summaryrefslogtreecommitdiffstats
path: root/mining/bin/newkey.sh
diff options
context:
space:
mode:
authoruser <user@bergwerk>2011-07-11 06:21:35 +0000
committeruser <user@bergwerk>2011-07-11 06:21:35 +0000
commit048a1ed5f083a24c6016a76e464d2005bfc1cd43 (patch)
treed84a316336ab26e4175d115da570d9b90812897a /mining/bin/newkey.sh
parent9c76bcd1eef39df632a7a9ac70584ba7a90fb6b1 (diff)
parent9dc44c6df82adafbd31ee9c7f93a1c0e86a6e61b (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'mining/bin/newkey.sh')
-rwxr-xr-xmining/bin/newkey.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/mining/bin/newkey.sh b/mining/bin/newkey.sh
deleted file mode 100755
index e71ab85b..00000000
--- a/mining/bin/newkey.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-auth=$HOME/.Xauthority
-cp /dev/null $auth
-
-if [ "$1" = "-md5" ]; then
- key=`pstat -pfS | md5`
-else
- key=`perl -e 'srand; printf int(rand(10000000000000))'`
- key=$key$key
-fi
-
-xauth add unix:0 . $key
-
-xauth add ${HOST}:0 . $key