about summary refs log tree commit diff stats
path: root/ntcoin_freebsd_tildeguru
diff options
context:
space:
mode:
authorlogin <login@tilde.guru>2021-09-30 15:17:52 +0000
committerlogin <login@tilde.guru>2021-09-30 15:17:52 +0000
commit305ab2bd8c540fa5bf4702a52c5588830c871448 (patch)
treec5882b11f25d1ee3a77e422b7264f7436636e1a6 /ntcoin_freebsd_tildeguru
parenta6d0ab35518fb25f17c04b2c2b43982e1f9b47cd (diff)
downloadtcoin-305ab2bd8c540fa5bf4702a52c5588830c871448.tar.gz
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.
Diffstat (limited to 'ntcoin_freebsd_tildeguru')
-rwxr-xr-xntcoin_freebsd_tildeguru9
1 files changed, 6 insertions, 3 deletions
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" ]