mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-17 21:31:45 +01:00
check for physical rpi in bootstrap, only run uasp-fix on rpi
This commit is contained in:
parent
b20e9f0bab
commit
3f10c0facc
@ -81,6 +81,12 @@ ln_cl_mainnet_sync_initial_done=0
|
||||
ln_cl_testnet_sync_initial_done=0
|
||||
ln_cl_signet_sync_initial_done=0
|
||||
|
||||
# detect physical Raspberry Pi
|
||||
rpi=0
|
||||
if grep -q "Raspberry Pi" /proc/device-tree/model 2>/dev/null; then
|
||||
rpi=1
|
||||
fi
|
||||
|
||||
# detect VM
|
||||
vm=0
|
||||
if [ $(systemd-detect-virt) != "none" ]; then
|
||||
@ -97,6 +103,7 @@ echo "setupPhase=${setupPhase}" >> $infoFile
|
||||
echo "setupStep=${setupStep}" >> $infoFile
|
||||
echo "baseimage=${baseimage}" >> $infoFile
|
||||
echo "cpu=${cpu}" >> $infoFile
|
||||
echo "rpi=${rpi}" >> $infoFile
|
||||
echo "vm=${vm}" >> $infoFile
|
||||
echo "blitzapi=${blitzapi}" >> $infoFile
|
||||
echo "displayClass=${displayClass}" >> $infoFile
|
||||
@ -489,13 +496,15 @@ fi
|
||||
################################
|
||||
# UASP FIX
|
||||
################################
|
||||
/home/admin/_cache.sh set message "checking HDD"
|
||||
source <(/home/admin/config.scripts/blitz.datadrive.sh uasp-fix)
|
||||
if [ "${neededReboot}" == "1" ]; then
|
||||
if [ "${rpi}" == "1" ] ; then
|
||||
/home/admin/_cache.sh set message "checking HDD"
|
||||
source <(/home/admin/config.scripts/blitz.datadrive.sh uasp-fix)
|
||||
if [ "${neededReboot}" == "1" ]; then
|
||||
echo "UASP FIX applied ... reboot needed." >> $logFile
|
||||
systemInitReboot=1
|
||||
else
|
||||
else
|
||||
echo "No UASP FIX needed" >> $logFile
|
||||
fi
|
||||
fi
|
||||
|
||||
######################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user