mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 02:22:24 +01:00
Added change naem/alias to main menu
This commit is contained in:
@@ -223,6 +223,7 @@ else
|
|||||||
RECEIVE "Create Invoice/PaymentRequest" \
|
RECEIVE "Create Invoice/PaymentRequest" \
|
||||||
SERVICES "Activate/Deactivate Services" \
|
SERVICES "Activate/Deactivate Services" \
|
||||||
MOBILE "Connect Mobile Wallet" \
|
MOBILE "Connect Mobile Wallet" \
|
||||||
|
NAME "Change Name/Alias of Node" \
|
||||||
CASHOUT "Remove Funds from on-chain Wallet")
|
CASHOUT "Remove Funds from on-chain Wallet")
|
||||||
|
|
||||||
# dont offer lnbalance/lnchannels on testnet
|
# dont offer lnbalance/lnchannels on testnet
|
||||||
@@ -369,6 +370,12 @@ case $CHOICE in
|
|||||||
read key
|
read key
|
||||||
./00mainMenu.sh
|
./00mainMenu.sh
|
||||||
;;
|
;;
|
||||||
|
NAME)
|
||||||
|
sudo /home/admin/config.scripts/lnd.setname.sh
|
||||||
|
echo "Press ENTER to Reboot."
|
||||||
|
read key
|
||||||
|
sudo shutdown -r now
|
||||||
|
;;
|
||||||
OFF)
|
OFF)
|
||||||
echo ""
|
echo ""
|
||||||
echo "LCD turns white when shutdown complete."
|
echo "LCD turns white when shutdown complete."
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ newName=$1
|
|||||||
# run interactive if 'turn on' && no further parameters
|
# run interactive if 'turn on' && no further parameters
|
||||||
if [ ${#newName} -eq 0 ]; then
|
if [ ${#newName} -eq 0 ]; then
|
||||||
|
|
||||||
dialog --backtitle "Name/Alias" --inputbox "ENTER the new Name for LND node:
|
dialog --backtitle "Set LND Name/Alias" --inputbox "ENTER the new Name/Alias for LND node:
|
||||||
(one word, use basic characters)
|
(free to choose, one word, use basic characters)
|
||||||
" 8 52 2>./.tmp
|
" 8 52 2>./.tmp
|
||||||
newName=$( cat ./.tmp )
|
newName=$( cat ./.tmp )
|
||||||
if [ ${#newName} -eq 0 ]; then
|
if [ ${#newName} -eq 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user