Skip to content

Commit

Permalink
Antminer S9i
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasha49 committed Jun 3, 2018
1 parent eb08a86 commit 565ea4e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hive/bin/agent
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ miner_stats () {
stats_raw=
max_fan_rpm=6000
case $ASIC_MODEL in
"Antminer S9"|"Antminer T9+")
"Antminer S9"|"Antminer T9+"|"Antminer S9i")
stats_raw=`echo '{"command":"stats"}' | timeout -t 7 nc localhost 4028 | tr -d '\0'`
if [[ $? -ne 0 || -z $stats_raw ]]; then
echo -e "${YELLOW}Failed to read $miner stats from localhost:4028${NOCOLOR}"
Expand Down
2 changes: 1 addition & 1 deletion hive/bin/asic-model
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ASIC_MODEL=`sed -n 2p /usr/bin/compile_time`

if [[ $ASIC_MODEL == "Antminer S9" ]]; then
if [[ $ASIC_MODEL == "Antminer S9" ]] || [[ $ASIC_MODEL == "Antminer S9i" ]]; then
MOUNT=""
ASIC_ALGO="sha256"
THIS_MINER_NAME="bmminer"
Expand Down
4 changes: 2 additions & 2 deletions hive/bin/asicminer-config
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function config_gen() {

# echo $pools | jq .

if [[ $ASIC_MODEL == "Antminer S9" ]]; then
if [[ $ASIC_MODEL == "Antminer S9" ]] || [[ $ASIC_MODEL == "Antminer S9i" ]]; then
config_global='{
"api-listen" : true,
"api-network" : true,
Expand Down Expand Up @@ -88,7 +88,7 @@ elif [[ $ASIC_MODEL == "Antminer L3+" ]]; then
"api-groups" : "A:stats:pools:devs:summary:version",
"api-allow" : "A:127.0.0.1,W:127.0.0.1",
"bitmain-use-vil" : true,
"bitmain-freq" : "0"
"bitmain-freq" : "384"
}'
elif [[ $ASIC_MODEL == "Antminer L3++" ]]; then
config_global='{
Expand Down
2 changes: 1 addition & 1 deletion hive/bin/hive
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ echo2 "$msg"
#openvpn-install
#will wait for interface

if [[ $ASIC_MODEL == "Antminer S9" ]] || [[ $ASIC_MODEL == "Antminer T9+" ]]; then
if [[ $ASIC_MODEL == "Antminer S9" ]] || [[ $ASIC_MODEL == "Antminer T9+" ]] || [[ $ASIC_MODEL == "Antminer S9i" ]]; then
echo2 "> Applying crontab"
[[ ! -d /var/spool/cron/crontabs ]] && ln -s /tmp /var/spool/cron/crontabs
crontab /hive/etc/crontab.root
Expand Down
3 changes: 3 additions & 0 deletions hive/bin/selfupgrade
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ FILEEOF
if [ "$ASIC_MODEL" == "Antminer S9" ]; then
echo "Install Antminer S9"
install_s9
elif [ "$ASIC_MODEL" == "Antminer S9i" ]; then
echo "Install Antminer S9i"
install_s9
elif [ "$ASIC_MODEL" == "Antminer A3" ]; then
echo "Install Antminer A3"
install_a3_d3
Expand Down

0 comments on commit 565ea4e

Please sign in to comment.