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_testnet_sync_initial_done=0
|
||||||
ln_cl_signet_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
|
# detect VM
|
||||||
vm=0
|
vm=0
|
||||||
if [ $(systemd-detect-virt) != "none" ]; then
|
if [ $(systemd-detect-virt) != "none" ]; then
|
||||||
@ -97,6 +103,7 @@ echo "setupPhase=${setupPhase}" >> $infoFile
|
|||||||
echo "setupStep=${setupStep}" >> $infoFile
|
echo "setupStep=${setupStep}" >> $infoFile
|
||||||
echo "baseimage=${baseimage}" >> $infoFile
|
echo "baseimage=${baseimage}" >> $infoFile
|
||||||
echo "cpu=${cpu}" >> $infoFile
|
echo "cpu=${cpu}" >> $infoFile
|
||||||
|
echo "rpi=${rpi}" >> $infoFile
|
||||||
echo "vm=${vm}" >> $infoFile
|
echo "vm=${vm}" >> $infoFile
|
||||||
echo "blitzapi=${blitzapi}" >> $infoFile
|
echo "blitzapi=${blitzapi}" >> $infoFile
|
||||||
echo "displayClass=${displayClass}" >> $infoFile
|
echo "displayClass=${displayClass}" >> $infoFile
|
||||||
@ -489,13 +496,15 @@ fi
|
|||||||
################################
|
################################
|
||||||
# UASP FIX
|
# UASP FIX
|
||||||
################################
|
################################
|
||||||
/home/admin/_cache.sh set message "checking HDD"
|
if [ "${rpi}" == "1" ] ; then
|
||||||
source <(/home/admin/config.scripts/blitz.datadrive.sh uasp-fix)
|
/home/admin/_cache.sh set message "checking HDD"
|
||||||
if [ "${neededReboot}" == "1" ]; then
|
source <(/home/admin/config.scripts/blitz.datadrive.sh uasp-fix)
|
||||||
echo "UASP FIX applied ... reboot needed." >> $logFile
|
if [ "${neededReboot}" == "1" ]; then
|
||||||
systemInitReboot=1
|
echo "UASP FIX applied ... reboot needed." >> $logFile
|
||||||
else
|
systemInitReboot=1
|
||||||
echo "No UASP FIX needed" >> $logFile
|
else
|
||||||
|
echo "No UASP FIX needed" >> $logFile
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user