From 305ab2bd8c540fa5bf4702a52c5588830c871448 Mon Sep 17 00:00:00 2001 From: login Date: Thu, 30 Sep 2021 15:17:52 +0000 Subject: Fixes for tilde.guru to tcoin.cpp and ntcoin_freebsd_tildeguru /usr/bin/whoami doesn't give the euid's username, but the uid's on FreeBSD, so did the same thing I did for tilde.institute, but for tilde.guru too and introduced a new flag for it, TILDEGURU. --- ntcoin_freebsd_tildeguru | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ntcoin_freebsd_tildeguru') diff --git a/ntcoin_freebsd_tildeguru b/ntcoin_freebsd_tildeguru index b06f76b..178863d 100755 --- a/ntcoin_freebsd_tildeguru +++ b/ntcoin_freebsd_tildeguru @@ -28,7 +28,8 @@ then #define TCOIN_HOST_NAME "'$3'" #define KROWBAR_OFF #define DA_OFF -#define MINERCOIN_OFF' +#define MINERCOIN_OFF +#define TILDEGURU' else #see https://stackoverflow.com/a/3951175 case $3 in @@ -163,7 +164,8 @@ else #define TCOIN_HOST_NAME "'$4'" #define KROWBAR_OFF #define DA_OFF -#define MINERCOIN_OFF' > "`/bin/realpath -q $1`/tcoin/bin/tcoin_defs.cpp" +#define MINERCOIN_OFF +#define TILDEGURU' > "`/bin/realpath -q $1`/tcoin/bin/tcoin_defs.cpp" /bin/chmod 640 "`/bin/realpath -q $1`/tcoin/bin/tcoin_defs.cpp" fi if [ -e "`/bin/realpath -q $1`/tcoin/bin/pcoin_defs.cpp" ] @@ -186,7 +188,8 @@ else #define PCOIN_BIN_PATH_W_SPACE "'`/bin/realpath -q $2`'/pcoin " #define KROWBAR_OFF #define DA_OFF -#define MINERCOIN_OFF' > "`/bin/realpath -q $1`/tcoin/bin/pcoin_defs.cpp" +#define MINERCOIN_OFF +#define TILDEGURU' > "`/bin/realpath -q $1`/tcoin/bin/pcoin_defs.cpp" /bin/chmod 640 "`/bin/realpath -q $1`/tcoin/bin/pcoin_defs.cpp" fi if [ -e "`/bin/realpath -q $1`/tcoin/bin/tcoin" ] -- cgit 1.4.1-2-gfad0