From 9b63955b0989eb256a45cc55ca21ed51e3ce89cf Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Tue, 8 Jun 2021 21:56:02 -0400 Subject: [PATCH 1/2] Fix shellcheck warnings in randomx_boost.sh Checked using www.shellcheck.net Specific issues addessed: * https://github.com/koalaman/shellcheck/wiki/SC2002 * Use POSIX instead of bash for wider compatibility * Fail on error --- scripts/randomx_boost.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/randomx_boost.sh b/scripts/randomx_boost.sh index f74b34b23..3b60959d9 100755 --- a/scripts/randomx_boost.sh +++ b/scripts/randomx_boost.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh -e MSR_FILE=/sys/module/msr/parameters/allow_writes @@ -8,9 +8,9 @@ else modprobe msr allow_writes=on fi -if cat /proc/cpuinfo | grep -E 'AMD Ryzen|AMD EPYC' > /dev/null; +if grep -E 'AMD Ryzen|AMD EPYC' /proc/cpuinfo > /dev/null; then - if cat /proc/cpuinfo | grep "cpu family[[:space:]]:[[:space:]]25" > /dev/null; + if grep "cpu family[[:space:]]:[[:space:]]25" /proc/cpuinfo > /dev/null; then echo "Detected Zen3 CPU" wrmsr -a 0xc0011020 0x4480000000000 @@ -26,7 +26,7 @@ if cat /proc/cpuinfo | grep -E 'AMD Ryzen|AMD EPYC' > /dev/null; wrmsr -a 0xc001102b 0x2000cc16 echo "MSR register values for Zen1/Zen2 applied" fi -elif cat /proc/cpuinfo | grep "Intel" > /dev/null; +elif grep "Intel" /proc/cpuinfo > /dev/null; then echo "Detected Intel CPU" wrmsr -a 0x1a4 0xf From 9f778742a6f44881aa687f0bfd037ed139c92c0b Mon Sep 17 00:00:00 2001 From: XMRig Date: Thu, 1 Jul 2021 20:03:52 +0700 Subject: [PATCH 2/2] v6.13.0 --- src/version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version.h b/src/version.h index 744b538e0..7641dc5c9 100644 --- a/src/version.h +++ b/src/version.h @@ -28,7 +28,7 @@ #define APP_ID "xmrig" #define APP_NAME "XMRig" #define APP_DESC "XMRig miner" -#define APP_VERSION "6.13.0-dev" +#define APP_VERSION "6.13.0" #define APP_DOMAIN "xmrig.com" #define APP_SITE "www.xmrig.com" #define APP_COPYRIGHT "Copyright (C) 2016-2021 xmrig.com"