mirror of
https://github.com/aljazceru/mutiny-net.git
synced 2025-12-16 21:44:21 +01:00
14 lines
271 B
Bash
Executable File
14 lines
271 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# run bitcoind
|
|
bitcoind --daemonwait
|
|
sleep 5
|
|
echo "get magic"
|
|
magic=$(cat /root/.bitcoin/signet/debug.log | grep -m1 magic)
|
|
magic=${magic:(-8)}
|
|
echo $magic > /root/.bitcoin/MAGIC.txt
|
|
|
|
# if in mining mode
|
|
if [[ "$MINERENABLED" == "1" ]]; then
|
|
mine.sh
|
|
fi |