mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
create temp file in shared memory (/dev/shm/) (#2058)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
_temp="./download/dialog.$$"
|
_temp=$(mktemp -p /dev/shm/)
|
||||||
|
|
||||||
## get basic info
|
## get basic info
|
||||||
source /home/admin/raspiblitz.info 2>/dev/null
|
source /home/admin/raspiblitz.info 2>/dev/null
|
||||||
|
@@ -216,7 +216,7 @@ case $CHOICE in
|
|||||||
result=""
|
result=""
|
||||||
while [ ${#result} -eq 0 ]
|
while [ ${#result} -eq 0 ]
|
||||||
do
|
do
|
||||||
_temp="/home/admin/download/dialog.$$"
|
_temp=$(mktemp -p /dev/shm/)
|
||||||
l1="Please enter the new name of your LND node:\n"
|
l1="Please enter the new name of your LND node:\n"
|
||||||
l2="different name is better for a fresh identity\n"
|
l2="different name is better for a fresh identity\n"
|
||||||
l3="one word, keep characters basic & not too long"
|
l3="one word, keep characters basic & not too long"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
_temp="./download/dialog.$$"
|
_temp=$(mktemp -p /dev/shm/)
|
||||||
_error="./.error.out"
|
_error=$(mktemp -p /dev/shm/)
|
||||||
|
|
||||||
echo "please wait ..."
|
echo "please wait ..."
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
_temp="./download/dialog.$$"
|
_temp=$(mktemp -p /dev/shm/)
|
||||||
_error="./.error.out"
|
_error=$(mktemp -p /dev/shm/)
|
||||||
|
|
||||||
# load raspiblitz config data (with backup from old config)
|
# load raspiblitz config data (with backup from old config)
|
||||||
source /home/admin/raspiblitz.info
|
source /home/admin/raspiblitz.info
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
clear
|
clear
|
||||||
_temp="./download/dialog.$$"
|
_temp=$(mktemp -p /dev/shm/)
|
||||||
_error="./.error.out"
|
_error=$(mktemp -p /dev/shm/)
|
||||||
sudo chmod 7777 ${_error} 2>/dev/null
|
sudo chmod 7777 ${_error} 2>/dev/null
|
||||||
|
|
||||||
# load raspiblitz config data (with backup from old config)
|
# load raspiblitz config data (with backup from old config)
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
_temp="./download/dialog.$$"
|
_temp=$(mktemp -p /dev/shm/)
|
||||||
_error="./.error.out"
|
_error=$(mktemp -p /dev/shm/)
|
||||||
|
|
||||||
# load raspiblitz config data (with backup from old config)
|
# load raspiblitz config data (with backup from old config)
|
||||||
source /home/admin/raspiblitz.info
|
source /home/admin/raspiblitz.info
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
clear
|
clear
|
||||||
_temp="./download/dialog.$$"
|
_temp=$(mktemp -p /dev/shm/)
|
||||||
_error="./.error.out"
|
_error=$(mktemp -p /dev/shm/)
|
||||||
sudo chmod 7777 ${_error} 2>/dev/null
|
sudo chmod 7777 ${_error} 2>/dev/null
|
||||||
|
|
||||||
# load raspiblitz config data (with backup from old config)
|
# load raspiblitz config data (with backup from old config)
|
||||||
|
@@ -17,7 +17,7 @@ if [ "$EUID" -ne 0 ]
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# tempfile
|
# tempfile
|
||||||
_temp="./dialog.$$"
|
_temp=$(mktemp -p /dev/shm/)
|
||||||
|
|
||||||
# load raspiblitz config (if available)
|
# load raspiblitz config (if available)
|
||||||
source /home/admin/raspiblitz.info
|
source /home/admin/raspiblitz.info
|
||||||
|
@@ -4,8 +4,8 @@ network=mainnet
|
|||||||
chain=bitcoin
|
chain=bitcoin
|
||||||
|
|
||||||
if [ "$1" = "-menu" ]; then
|
if [ "$1" = "-menu" ]; then
|
||||||
_temp="./download/dialog.$$"
|
_temp=$(mktemp -p /dev/shm/)
|
||||||
_error="./.error.out"
|
_error=$(mktemp -p /dev/shm/)
|
||||||
|
|
||||||
# load raspiblitz config data (with backup from old config)
|
# load raspiblitz config data (with backup from old config)
|
||||||
source /home/admin/raspiblitz.info
|
source /home/admin/raspiblitz.info
|
||||||
|
Reference in New Issue
Block a user