From fc18d774f14bbd5bfc8e67a3cf73c56a1467e352 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 14 Jan 2019 13:45:24 +0100 Subject: [PATCH] Added change naem/alias to main menu --- home.admin/00mainMenu.sh | 7 +++++++ home.admin/config.scripts/lnd.setname.sh | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/home.admin/00mainMenu.sh b/home.admin/00mainMenu.sh index d8fb53242..7ca954ad5 100755 --- a/home.admin/00mainMenu.sh +++ b/home.admin/00mainMenu.sh @@ -223,6 +223,7 @@ else RECEIVE "Create Invoice/PaymentRequest" \ SERVICES "Activate/Deactivate Services" \ MOBILE "Connect Mobile Wallet" \ + NAME "Change Name/Alias of Node" \ CASHOUT "Remove Funds from on-chain Wallet") # dont offer lnbalance/lnchannels on testnet @@ -369,6 +370,12 @@ case $CHOICE in read key ./00mainMenu.sh ;; + NAME) + sudo /home/admin/config.scripts/lnd.setname.sh + echo "Press ENTER to Reboot." + read key + sudo shutdown -r now + ;; OFF) echo "" echo "LCD turns white when shutdown complete." diff --git a/home.admin/config.scripts/lnd.setname.sh b/home.admin/config.scripts/lnd.setname.sh index abd5aca94..a7c1bd697 100644 --- a/home.admin/config.scripts/lnd.setname.sh +++ b/home.admin/config.scripts/lnd.setname.sh @@ -13,8 +13,8 @@ newName=$1 # run interactive if 'turn on' && no further parameters if [ ${#newName} -eq 0 ]; then - dialog --backtitle "Name/Alias" --inputbox "ENTER the new Name for LND node: -(one word, use basic characters) + dialog --backtitle "Set LND Name/Alias" --inputbox "ENTER the new Name/Alias for LND node: +(free to choose, one word, use basic characters) " 8 52 2>./.tmp newName=$( cat ./.tmp ) if [ ${#newName} -eq 0 ]; then