diff --git a/home.admin/00infoLCD.sh b/home.admin/00infoLCD.sh index 6535f9cc..d0095daf 100755 --- a/home.admin/00infoLCD.sh +++ b/home.admin/00infoLCD.sh @@ -49,7 +49,7 @@ while : # check hostname and get backup if from old config if [ ${#hostname} -eq 0 ]; then # keep for old nodes - hostname=`sudo cat /home/admin/.hostname` + hostname=`sudo cat /home/admin/.hostname` 2>/dev/null if [ ${#hostname} -eq 0 ]; then hostname="raspiblitz" fi diff --git a/home.admin/00mainMenu.sh b/home.admin/00mainMenu.sh index 18588d09..f3bb6cd5 100755 --- a/home.admin/00mainMenu.sh +++ b/home.admin/00mainMenu.sh @@ -62,7 +62,7 @@ source /mnt/hdd/raspiblitz.conf # check hostname and get backup if from old config if [ ${#hostname} -eq 0 ]; then echo "backup info for old nodes: hostname" - hostname=`sudo cat /home/admin/.hostname` + hostname=`sudo cat /home/admin/.hostname` 2>/dev/null if [ ${#hostname} -eq 0 ]; then hostname="raspiblitz" fi