mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
install warning
This commit is contained in:
parent
ac078fe8c9
commit
bd1edee17d
@ -112,6 +112,13 @@ if [ "${public_port}" = "null" ]; then
|
||||
public_port="8333"
|
||||
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
|
||||
public_addr="??"
|
||||
torInfo=""
|
||||
@ -138,9 +145,6 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
#IP
|
||||
|
||||
|
||||
# LIGHTNING NETWORK
|
||||
|
||||
ln_baseInfo="-"
|
||||
@ -189,7 +193,7 @@ ${color_yellow} ,/ ${color_yellow}%s
|
||||
${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}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}Public ${public_color}${public_addr} ${public}
|
||||
${color_yellow} /,' ${color_gray}
|
||||
|
@ -24,6 +24,12 @@ if [ ${isMainChain} -gt 0 ];then
|
||||
chain="main"
|
||||
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
|
||||
waitUntilChainNetworkIsReady()
|
||||
{
|
||||
@ -94,6 +100,10 @@ else
|
||||
|
||||
else
|
||||
|
||||
if [ ${runningRTL} -eq 1 ]; then
|
||||
TITLE="Webinterface: http://${localip}:3000"
|
||||
fi
|
||||
|
||||
switchOption="to MAINNET"
|
||||
if [ "${chain}" = "main" ]; then
|
||||
switchOption="back to TESTNET"
|
||||
|
@ -6,6 +6,12 @@
|
||||
# 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'/')
|
||||
|
||||
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 ***"
|
||||
isInstalled=$(sudo ls /etc/systemd/system/RTL.service | grep -c 'RTL.service')
|
||||
if [ ${isInstalled} -eq 1 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user