This commit is contained in:
2024-11-12 10:23:40 -07:00
parent 99a42d816e
commit e6b79e14cf
4 changed files with 19 additions and 11 deletions
+4 -4
View File
@@ -76,9 +76,9 @@ cron:
crontab -e
0 8 * * * bash $HOME/esp/esp-install-custom/reinstall-esp-idf.sh cron
manually wipe logs:
rm $ESPIDF_INSTALLDIR/install.log; rm $ESPIDF_INSTALLDIR/version-data.txt; touch $ESPIDF_INSTALLDIR/install.log; touch $ESPIDF_INSTALLDIR/version-data.txt;
monitor log file during install:
tail -n 75 $ESPIDF_INSTALLDIR/install.log;
tail -n 75 -f $ESPIDF_INSTALLDIR/install.log;
view both logs from beginning:
less $ESPIDF_INSTALLDIR/install.log; less $ESPIDF_INSTALLDIR/version-data.txt;
```
+3 -3
View File
@@ -65,8 +65,8 @@ Helpful Stuff:
`crontab -e`
0 8 * * * bash $HOME/esp/esp-install-custom/reinstall-esp-idf.sh cron
manually wipe logs:
`rm $ESPIDF_INSTALLDIR/install.log; rm $ESPIDF_INSTALLDIR/version-data.txt; touch $ESPIDF_INSTALLDIR/install.log; touch $ESPIDF_INSTALLDIR/version-data.txt;`
monitor log file during install:
`tail -n 75 $ESPIDF_INSTALLDIR/install.log;`
view both logs from beginning:
`less $ESPIDF_INSTALLDIR/install.log; less $ESPIDF_INSTALLDIR/version-data.txt`
+10 -2
View File
@@ -230,8 +230,10 @@ function handleStart() {
installdirEnvvar=$ESPIDF_INSTALLDIR
fi
writeToLog "\n === $(date '+%d/%m/%Y %H:%M:%S %Z (%s)'): new ${action} ==="
writeToLog "\tVersion: ${scriptVers}\n"
if [ "$arg" != "interactive" -a "$arg" != "i" ]; then
writeToLog "\n === $(date '+%d/%m/%Y %H:%M:%S %Z (%s)'): new ${action} ==="
writeToLog "\tVersion: ${scriptVers}\n"
fi
writeToLog "$(date '+%d/%m/%Y %H:%M:%S %Z (%s)')\nvars:\n\tuser: $USER\n\tscriptVers: $scriptVers\n\tversionData: $versionData\n\tlog: $log\n\tsleepMins: $sleepMins\n\tinstallDir: $installDir\n\tgitJobs: $gitJobs\n\tgitBranch: $gitBranch\n\tgitCmd: $gitCmd\n\trunningDir: $runningDir\n\tidfDir: $idfDir\n\tespressifLocation: $espressifLocation\n\tcustomBinLocation: $customBinLocation\n\tcustomBinFrom: $customBinFrom\n\tinstallCmd: $installCmd\n\ttoolsInstallCmd: $toolsInstallCmd\n\trcFile: $rcFile\n\t(envvar) ESPIDF_INSTALLDIR: $installdirEnvvar"
@@ -324,6 +326,9 @@ elif [ "$arg" == "interactive" -o "$arg" == "i" ]; then
gitJobs=$readGitJobs
fi
writeToLog "\n === $(date '+%d/%m/%Y %H:%M:%S %Z (%s)'): new ${action} ==="
writeToLog "\tVersion: ${scriptVers}\n"
writeToLog "$(date '+%d/%m/%Y %H:%M:%S %Z (%s)'): Interactive vars set:\n\tinstallDir: $installDir\n\tgitBranch: $gitBranch\n\trcFile: $rcFile\n\tgitJobs: $gitJobs"
handleStart
@@ -339,6 +344,9 @@ elif [ "$arg" == "interactive" -o "$arg" == "i" ]; then
elif [ "$arg" == "cron" -o "$arg" == "c" ]; then # full install with warn, sleep, and reboot
action="REINSTALL (CRON)"
sleepMins=1
# sleepMins=3
handleStart
handleLogoutAllUsers
handleSetupEnvironment
+1 -1
View File
@@ -1 +1 @@
60-beta2.4
60-rc0