diff --git a/home.admin/00mainMenu.sh b/home.admin/00mainMenu.sh index 1a10cad78..39fd3725a 100755 --- a/home.admin/00mainMenu.sh +++ b/home.admin/00mainMenu.sh @@ -137,6 +137,10 @@ else OPTIONS+=(NYX "Monitor TOR") fi + if [ ${runningRTL} -eq 0 ]; then + OPTIONS+=(RTL "Install RTL Web Interface") + fi + # final Options OPTIONS+=(OFF "PowerOff RaspiBlitz") OPTIONS+=(X "Console / Terminal") @@ -257,6 +261,12 @@ case $CHOICE in echo "Press ENTER to return to main menu." read key ./00mainMenu.sh + ;; + RTL) + sudo ./98installRTL.sh + echo "Press ENTER to return to main menu." + read key + ./00mainMenu.sh ;; OFF) echo "After Shutdown remove power from RaspiBlitz." diff --git a/home.admin/98installRTL.sh b/home.admin/98installRTL.sh index f6be6425e..1b3e69c9c 100644 --- a/home.admin/98installRTL.sh +++ b/home.admin/98installRTL.sh @@ -6,12 +6,6 @@ # 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 @@ -25,6 +19,13 @@ if [ ${isInstalled} -eq 1 ]; then exit 1 fi +echo "*** Dialog ***" +dialog --title "Install: Ride The Lightning Web Interface" --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 50 +response=$? +case $response in + 1) exit 1 ;; +esac + # disable RPC listen # to prevent tls cer auth error echo "*** Modify lnd.conf ***" @@ -70,7 +71,7 @@ echo "---> http://${localip}:3000" echo "" echo "RTL web server will now start with every new boot." echo "Always unlock your wallet from there now." -echo "Just use RTL from same local network, dont forward" +echo "Just use RTL from same local network, DONT forward" echo "port 3000 on your internet router to the RaspiBlitz." echo "" echo "Have fun 'Riding the Lightning' (RTL) :D" \ No newline at end of file