Browse Source

added RTL to main menu

#146
rootzoll 6 years ago
parent
commit
fba24b4c9e
  1. 10
      home.admin/00mainMenu.sh
  2. 15
      home.admin/98installRTL.sh

10
home.admin/00mainMenu.sh

@ -137,6 +137,10 @@ else
OPTIONS+=(NYX "Monitor TOR") OPTIONS+=(NYX "Monitor TOR")
fi fi
if [ ${runningRTL} -eq 0 ]; then
OPTIONS+=(RTL "Install RTL Web Interface")
fi
# final Options # final Options
OPTIONS+=(OFF "PowerOff RaspiBlitz") OPTIONS+=(OFF "PowerOff RaspiBlitz")
OPTIONS+=(X "Console / Terminal") OPTIONS+=(X "Console / Terminal")
@ -257,6 +261,12 @@ case $CHOICE in
echo "Press ENTER to return to main menu." echo "Press ENTER to return to main menu."
read key read key
./00mainMenu.sh ./00mainMenu.sh
;;
RTL)
sudo ./98installRTL.sh
echo "Press ENTER to return to main menu."
read key
./00mainMenu.sh
;; ;;
OFF) OFF)
echo "After Shutdown remove power from RaspiBlitz." echo "After Shutdown remove power from RaspiBlitz."

15
home.admin/98installRTL.sh

@ -6,12 +6,6 @@
# 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
@ -25,6 +19,13 @@ if [ ${isInstalled} -eq 1 ]; then
exit 1 exit 1
fi 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 # disable RPC listen
# to prevent tls cer auth error # to prevent tls cer auth error
echo "*** Modify lnd.conf ***" echo "*** Modify lnd.conf ***"
@ -70,7 +71,7 @@ echo "---> http://${localip}:3000"
echo "" echo ""
echo "RTL web server will now start with every new boot." echo "RTL web server will now start with every new boot."
echo "Always unlock your wallet from there now." 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 "port 3000 on your internet router to the RaspiBlitz."
echo "" echo ""
echo "Have fun 'Riding the Lightning' (RTL) :D" echo "Have fun 'Riding the Lightning' (RTL) :D"
Loading…
Cancel
Save