|
@ -107,7 +107,7 @@ fi |
|
|
|
|
|
|
|
|
# get IP address & port |
|
|
# get IP address & port |
|
|
local_ip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') |
|
|
local_ip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') |
|
|
public_ip=$(curl -s http://v4v6.ipv6-test.com/api/myip.php) |
|
|
public_ip=$(curl -s http://v4.ipv6-test.com/api/myip.php) |
|
|
public_port=$(cat ${bitcoin_dir}/${network}.conf 2>/dev/null | grep port= | awk -F"=" '{print $2}') |
|
|
public_port=$(cat ${bitcoin_dir}/${network}.conf 2>/dev/null | grep port= | awk -F"=" '{print $2}') |
|
|
if [ "${public_port}" = "" ]; then |
|
|
if [ "${public_port}" = "" ]; then |
|
|
if [ $chain = "test" ]; then |
|
|
if [ $chain = "test" ]; then |
|
@ -154,23 +154,23 @@ fi |
|
|
networkVersion=$(${network}-cli -datadir=${bitcoin_dir} -version | cut -d ' ' -f6) |
|
|
networkVersion=$(${network}-cli -datadir=${bitcoin_dir} -version | cut -d ' ' -f6) |
|
|
ln_alias=`sudo -u admin cat /home/admin/.hostname` |
|
|
ln_alias=`sudo -u admin cat /home/admin/.hostname` |
|
|
|
|
|
|
|
|
printf " |
|
|
printf " |
|
|
${color_yellow} |
|
|
${color_yellow} |
|
|
${color_yellow} |
|
|
${color_yellow} |
|
|
${color_yellow} |
|
|
${color_yellow} |
|
|
${color_yellow} ${color_yellow}%s ${color_green} ${ln_alias} |
|
|
${color_yellow} ${color_yellow}%s ${color_green} ${ln_alias} |
|
|
${color_yellow} ${color_gray}${network} Fullnode + Lightning Network |
|
|
${color_yellow} ${color_gray}${network} Fullnode + Lightning Network |
|
|
${color_yellow} ${color_yellow}%s |
|
|
${color_yellow} ${color_yellow}%s |
|
|
${color_yellow} ,/ ${color_yellow} |
|
|
${color_yellow} ,/ ${color_yellow} |
|
|
${color_yellow} ,'/ ${color_gray}%s, CPU %s°C |
|
|
${color_yellow} ,'/ ${color_gray}%s, CPU %s°C |
|
|
${color_yellow} ,' / ${color_gray}Free Mem ${color_ram}${ram} ${color_gray} Free HDD ${color_hdd}%s |
|
|
${color_yellow} ,' / ${color_gray}Free Mem ${color_ram}${ram} ${color_gray} Free HDD ${color_hdd}%s |
|
|
${color_yellow} ,' /_____, ${color_gray} |
|
|
${color_yellow} ,' /_____, ${color_gray} |
|
|
${color_yellow} .'____ ,' ${color_gray}Local ${color_green}${local_ip}${color_gray} ▼ ${network_rx} ▲ ${network_tx} |
|
|
${color_yellow} .'____ ,' ${color_gray}Local ${color_green}${local_ip}${color_gray} ▼ ${network_rx} ▲ ${network_tx} |
|
|
${color_yellow} / ,' ${color_gray}Public ${public_color}${public_addr} ${public} |
|
|
${color_yellow} / ,' ${color_gray}Public ${public_color}${public_addr} ${public} |
|
|
${color_yellow} / ,' ${color_gray} |
|
|
${color_yellow} / ,' ${color_gray} |
|
|
${color_yellow} /,' ${color_gray}${network} ${color_green}${networkVersion} ${chain}net ${color_gray}Sync ${sync_color}${sync} (%s) |
|
|
${color_yellow} /,' ${color_gray}${network} ${color_green}${networkVersion} ${chain}net ${color_gray}Sync ${sync_color}${sync} (%s) |
|
|
${color_yellow} /' ${color_gray}LND ${color_green}v0.4.2 ${color_gray}wallet ${ln_walletbalance} sat |
|
|
${color_yellow} /' ${color_gray}LND ${color_green}v0.4.2 ${color_gray}wallet ${ln_walletbalance} sat |
|
|
${color_yellow} ${color_gray}${ln_channels_online}/${ln_channels_total} Channels ${ln_channelbalance} sat |
|
|
${color_yellow} ${color_gray}${ln_channels_online}/${ln_channels_total} Channels ${ln_channelbalance} sat |
|
|
${color_yellow} ${ln_external} |
|
|
${color_yellow} ${ln_external} |
|
|
${color_yellow} |
|
|
${color_yellow} |
|
|
" \ |
|
|
" \ |
|
|