mute warnings

This commit is contained in:
rootzoll 2018-12-06 17:54:58 +01:00
parent b6ca87c2a6
commit 822466eb0d
2 changed files with 2 additions and 2 deletions

View File

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

View File

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