monero-miner/start-miner.sh
2021-03-02 21:42:39 +01:00

18 lines
351 B
Bash

#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must run as root"
exit 1
fi
# change directory relative to the current file path.
cd $(dirname "$(readlink -f "$0")")
# activate huge pages
source 'scripts/randomx_booster.sh'
# enable huge pages
source 'scripts/huge_pages.sh'
# start xmr-stak-rx
cd 'xmr-stak-rx' && ./xmr-stak-rx