mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 10:28:58 +01:00
Compare commits
1 Commits
v1.12.0
...
check-for-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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,6 +496,7 @@ fi
|
|||||||
################################
|
################################
|
||||||
# UASP FIX
|
# UASP FIX
|
||||||
################################
|
################################
|
||||||
|
if [ "${rpi}" == "1" ] ; then
|
||||||
/home/admin/_cache.sh set message "checking HDD"
|
/home/admin/_cache.sh set message "checking HDD"
|
||||||
source <(/home/admin/config.scripts/blitz.datadrive.sh uasp-fix)
|
source <(/home/admin/config.scripts/blitz.datadrive.sh uasp-fix)
|
||||||
if [ "${neededReboot}" == "1" ]; then
|
if [ "${neededReboot}" == "1" ]; then
|
||||||
@@ -497,6 +505,7 @@ if [ "${neededReboot}" == "1" ]; then
|
|||||||
else
|
else
|
||||||
echo "No UASP FIX needed" >> $logFile
|
echo "No UASP FIX needed" >> $logFile
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
# CHECK IF REBOOT IS NEEDED
|
# CHECK IF REBOOT IS NEEDED
|
||||||
|
|||||||
Reference in New Issue
Block a user