Skip to content

Commit

Permalink
Fix issues with h-run.sh on Hive 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
Djadih committed Oct 17, 2024
1 parent 66f3f07 commit a37e4e8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hiveos_packager/h-run.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
#!/usr/bin/env bash

[[ `ps aux | grep "quai-gpu-miner" | grep -v grep | wc -l` != 0 ]] &&
[[ `pgrep -f "quai-gpu-miner --api-bind" | wc -l` != 0 ]] &&
echo -e "${RED}$CUSTOM_NAME miner is already running${NOCOLOR}" &&
exit 1

. h-manifest.conf


conf=`cat $MINER_CONFIG_FILENAME`

if [[ $conf=~';' ]]; then
conf=`echo $conf | tr -d '\'`
if [[ $conf =~ ';' ]]; then
conf=`echo $conf | tr -d '\\'`
fi

eval "unbuffer ./quai-gpu-miner ${conf//;/'\;'} --api-bind 127.0.0.1:21373"

sleep 10

0 comments on commit a37e4e8

Please sign in to comment.