Added change naem/alias to main menu

This commit is contained in:
rootzoll 2019-01-14 13:45:24 +01:00
parent 429af12435
commit fc18d774f1
2 changed files with 9 additions and 2 deletions

View file

@ -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."

View file

@ -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