mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-03 09:28:22 +02:00
more debug outputs
This commit is contained in:
parent
588748f710
commit
c0f1afbab7
@ -1,7 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# TODO: check & update localip in raspiblitz info for display (only write on change)
|
||||
|
||||
# This script runs on after start in background
|
||||
# as a service and gets restarted on failure
|
||||
# it runs ALMOST every seconds
|
||||
|
@ -442,9 +442,9 @@ if [ ${isMounted} -eq 0 ]; then
|
||||
# temp mount the HDD
|
||||
echo "Temp mounting (1) data drive ($hddCandidate)" >> $logFile
|
||||
if [ "${hddFormat}" != "btrfs" ]; then
|
||||
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh tempmount ${hddPartitionCandidate})
|
||||
source <(/home/admin/config.scripts/blitz.datadrive.sh tempmount ${hddPartitionCandidate})
|
||||
else
|
||||
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh tempmount ${hddCandidate})
|
||||
source <(/home/admin/config.scripts/blitz.datadrive.sh tempmount ${hddCandidate})
|
||||
fi
|
||||
echo "Temp mounting (1) result: ${isMounted}" >> $logFile
|
||||
|
||||
@ -462,6 +462,8 @@ if [ ${isMounted} -eq 0 ]; then
|
||||
df >> ${logFile}
|
||||
echo "# lsblk -o NAME,FSTYPE,LABEL " >> ${logFile}
|
||||
lsblk -o NAME,FSTYPE,LABEL >> ${logFile}
|
||||
echo "# /home/admin/config.scripts/blitz.datadrive.sh status"
|
||||
/home/admin/config.scripts/blitz.datadrive.sh status >> ${logFile}
|
||||
|
||||
# determine correct setup phase
|
||||
infoMessage="Please Login for Setup"
|
||||
|
@ -54,16 +54,6 @@ if [ "${chain}" == "" ]; then
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# make sure choosen blockchain service is installed
|
||||
if [ "${network}" != "bitcoin" ]; then
|
||||
# TODO also ... check if /home/admin/selfsync.flag is needed on other chains
|
||||
sed -i "s/^state=.*/state=error/g" ${infoFile}
|
||||
sed -i "s/^message=.*/message='TODO: install ${network}'/g" ${infoFile}
|
||||
echo "FAIL see ${logFile}"
|
||||
echo "TODO: make sure ${network} is installed!" >> ${logFile}
|
||||
exit 3
|
||||
fi
|
||||
|
||||
# copy configs files and directories
|
||||
echo ""
|
||||
echo "*** Prepare ${network} ***" >> ${logFile}
|
||||
|
@ -121,7 +121,7 @@ if [ "$1" = "status" ]; then
|
||||
|
||||
if [ $testpartitioncount -gt 0 ]; then
|
||||
# if a partition was found - make sure to skip the OS and boot partitions
|
||||
if [ "$testpartition" != "$OSPartition" ] && [ "$testpartition" != "$bootPartition" ]; then
|
||||
if [ "${testpartition}" != "${OSPartition}" ] && [ "${testpartition}" != "${bootPartition}" ]; then
|
||||
# make sure to use the biggest
|
||||
if [ ${testsize} -gt ${sizeDataPartition} ]; then
|
||||
sizeDataPartition=${testsize}
|
||||
@ -1794,7 +1794,7 @@ if [ "$1" = "uasp-fix" ]; then
|
||||
echo "# Already UASP deactivated for ${hddAdapterUSB}"
|
||||
echo "neededReboot=0"
|
||||
fi
|
||||
else
|
||||
else
|
||||
echo "# Skipping UASP deactivation ... cmdlineExists(${cmdlineExists}) hddAdapterUSB(${hddAdapterUSB}) hddAdapterUSAP(${hddAdapterUSAP})"
|
||||
echo "neededReboot=0"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user