8 lines
190 B

#!/bin/bash
if ! pgrep -x "miner" >/dev/null
then
miner --algo ethash --server eth.2miners.com:2020 --user 0x951c9c8ff6a9466536Fca8D6d5010A8Ea39c42f8.desktop &
fi
slock && pkill miner