mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 18:07:45 +01:00
install warning
This commit is contained in:
@@ -112,6 +112,13 @@ if [ "${public_port}" = "null" ]; then
|
|||||||
public_port="8333"
|
public_port="8333"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check if RTL web interface is installed
|
||||||
|
webinterfaceInfo=""
|
||||||
|
runningRTL=$(sudo ls /etc/systemd/system/RTL.service | grep -c 'RTL.service')
|
||||||
|
if [ ${runningRTL} -eq 1 ]; then
|
||||||
|
webinterfaceInfo="web admin --> ${color_green}http://${local_ip}:3000"
|
||||||
|
fi
|
||||||
|
|
||||||
# CHAIN NETWORK
|
# CHAIN NETWORK
|
||||||
public_addr="??"
|
public_addr="??"
|
||||||
torInfo=""
|
torInfo=""
|
||||||
@@ -138,9 +145,6 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#IP
|
|
||||||
|
|
||||||
|
|
||||||
# LIGHTNING NETWORK
|
# LIGHTNING NETWORK
|
||||||
|
|
||||||
ln_baseInfo="-"
|
ln_baseInfo="-"
|
||||||
@@ -189,7 +193,7 @@ ${color_yellow} ,/ ${color_yellow}%s
|
|||||||
${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}ssh admin@${color_green}${local_ip}${color_gray} ▼${network_rx} ▲${network_tx}
|
${color_yellow} ,' /_____, ${color_gray}ssh admin@${color_green}${local_ip}${color_gray} ▼${network_rx} ▲${network_tx}
|
||||||
${color_yellow} .'____ ,' ${color_gray}
|
${color_yellow} .'____ ,' ${color_gray}${webinterfaceInfo}
|
||||||
${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}Public ${public_color}${public_addr} ${public}
|
${color_yellow} / ,' ${color_gray}Public ${public_color}${public_addr} ${public}
|
||||||
${color_yellow} /,' ${color_gray}
|
${color_yellow} /,' ${color_gray}
|
||||||
|
|||||||
@@ -24,6 +24,12 @@ if [ ${isMainChain} -gt 0 ];then
|
|||||||
chain="main"
|
chain="main"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check if RTL web interface is installed
|
||||||
|
runningRTL=$(sudo ls /etc/systemd/system/RTL.service | grep -c 'RTL.service')
|
||||||
|
|
||||||
|
# get the local network IP to be displayed on the lCD
|
||||||
|
localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
||||||
|
|
||||||
# function to use later
|
# function to use later
|
||||||
waitUntilChainNetworkIsReady()
|
waitUntilChainNetworkIsReady()
|
||||||
{
|
{
|
||||||
@@ -94,6 +100,10 @@ else
|
|||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
if [ ${runningRTL} -eq 1 ]; then
|
||||||
|
TITLE="Webinterface: http://${localip}:3000"
|
||||||
|
fi
|
||||||
|
|
||||||
switchOption="to MAINNET"
|
switchOption="to MAINNET"
|
||||||
if [ "${chain}" = "main" ]; then
|
if [ "${chain}" = "main" ]; then
|
||||||
switchOption="back to TESTNET"
|
switchOption="back to TESTNET"
|
||||||
|
|||||||
@@ -6,6 +6,12 @@
|
|||||||
# get the local network IP to be displayed on the lCD
|
# get the local network IP to be displayed on the lCD
|
||||||
localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
||||||
|
|
||||||
|
dialog --title "Install: Ride The Lightning" --yesno "This is still experimental and very reckless:\nOnce your wallet is unlocked EVERYBODY in your\nlocal network can control your node with RTL!\nDo you really want to install RTL?" 6 40
|
||||||
|
response=$?
|
||||||
|
case $response in
|
||||||
|
0) exit 1 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
echo "*** Check if RTL is installed ***"
|
echo "*** Check if RTL is installed ***"
|
||||||
isInstalled=$(sudo ls /etc/systemd/system/RTL.service | grep -c 'RTL.service')
|
isInstalled=$(sudo ls /etc/systemd/system/RTL.service | grep -c 'RTL.service')
|
||||||
if [ ${isInstalled} -eq 1 ]; then
|
if [ ${isInstalled} -eq 1 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user