diff options
author | root <root@chinaman.(none)> | 2011-07-08 17:24:48 +0200 |
---|---|---|
committer | root <root@chinaman.(none)> | 2011-07-08 17:24:48 +0200 |
commit | 2f791c20ae45e7030c1b27d65f69186309a8ef8c (patch) | |
tree | 51a75164913e4d2caa424a5c7f118e12e31b1c45 /btc/mining/bin/newkey.sh | |
parent | efc72df0e8a8115741e60bffed6e5854a43b5b38 (diff) |
mining: added archlinux cruise control
mining/Makefile: added archlinux cruise control (auto installer) which always does the right thing.
loosely after http://rubyists.github.com/2011/06/08/how-to-build-a-namecoin-or-bitcoin-miner-in98-easy-steps.html
mining/{user/,}/bin:renamed
mining/bin/newkey.sh: add policy Xorg keygen
Diffstat (limited to 'btc/mining/bin/newkey.sh')
-rwxr-xr-x | btc/mining/bin/newkey.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/btc/mining/bin/newkey.sh b/btc/mining/bin/newkey.sh new file mode 100755 index 00000000..e71ab85b --- /dev/null +++ b/btc/mining/bin/newkey.sh @@ -0,0 +1,15 @@ +#!/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 |