From 6e87f54b0d9b704421c079d1124d006fb0660f96 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Jul 2011 17:24:48 +0200 Subject: 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 --- mining/bin/newkey.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 mining/bin/newkey.sh (limited to 'mining/bin/newkey.sh') diff --git a/mining/bin/newkey.sh b/mining/bin/newkey.sh new file mode 100755 index 00000000..e71ab85b --- /dev/null +++ b/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 -- cgit v1.2.3