mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
add info to logs
This commit is contained in:
parent
77780ff61f
commit
43eb266ce6
1 changed files with 2 additions and 0 deletions
|
@ -384,8 +384,10 @@ if [ ${isMounted} -eq 0 ]; then
|
|||
# get fresh info about data drive (just in case user disconnects)
|
||||
source <(sudo /home/admin/config.scripts/blitz.datadrive.sh status)
|
||||
if [ ${#hddError} -gt 0 ] || [ ${#hddCandidate} -eq 0 ]; then
|
||||
echo "!!! WARNING !!! Lost HDD connection .. triggering reboot, to restart system-init." >> $logFile
|
||||
sed -i "s/^state=.*/state=errorHDD/g" ${infoFile}
|
||||
sed -i "s/^message=.*/message='lost HDD - rebooting'/g" ${infoFile}
|
||||
sudo cp ${logFile} ${logFile}.error
|
||||
sudo shutdown -r now
|
||||
sleep 100
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue