61-beta4.3

This commit is contained in:
2024-11-13 02:07:56 -07:00
parent e044d02b69
commit ded913ccd6
2 changed files with 22 additions and 22 deletions
+21 -21
View File
@@ -5,54 +5,54 @@
# begin esp-idf stuffss I made ################ # begin esp-idf stuffss I made ################
############################################### ###############################################
echo "\n=======CUSTOM=======\n" echo -e "\n=======CUSTOM=======\n"
versionData=versionTAG versionData=versionTAG
commitHash=commitTAG commitHash=commitTAG
installDate=installDateTAG installDate=installDateTAG
if [ -z $ESPIDF_INSTALLDIR ]; then if [ -z $ESPIDF_INSTALLDIR ]; then
echo "\nFAIL: ESPIDF_INSTALLDIR environment variable not found!\nReinstall via script or manually add to ~/.zshrc\n" echo -e "\nFAIL: ESPIDF_INSTALLDIR environment variable not found!\nReinstall via script or manually add to ~/.zshrc\n"
exit exit
fi fi
binDir="${ESPIDF_INSTALLDIR}/.custom_bin" binDir="${ESPIDF_INSTALLDIR}/.custom_bin"
echo "TTY devices found in dmesg:" echo -e "\nTTY devices found in dmesg:"
COUNTER=0 COUNTER=0
devarr=() devarr=()
for line in $(dmesg | tail -50 | grep -o -E "tty[A-Z]{3}[0-9]{0,2}" | sort -u); do for line in $(dmesg | tail -50 | grep -o -E "tty[A-Z]{3}[0-9]{0,2}" | sort -u); do
echo "$COUNTER /dev/$line" echo -e "$COUNTER /dev/$line"
devarr+=("/dev/$line") devarr+=("/dev/$line")
COUNTER=$((COUNTER+1)) COUNTER=$((COUNTER+1))
done done
echo "\nEnter TTY Number You'd Like:" echo -e "\nEnter TTY Number You'd Like:"
read tty read tty
ttyselect=$devarr[(($tty+1))] ttyselect=$devarr[(($tty+1))]
echo "Set esp target:\n\tOne of: esp32, esp32s2, esp32c3, esp32s3, esp32c2, esp32c6, esp32h2, esp32p4, linux, esp32c5, or esp32c61" echo -e "Set esp target:\n\tOne of: esp32, esp32s2, esp32c3, esp32s3, esp32c2, esp32c6, esp32h2, esp32p4, linux, esp32c5, or esp32c61"
read esp read esp
echo "Setting environment variables" echo -e "\nSetting environment variables\n"
echo "Adding Custom bins to PATH"
export PATH="${ESPIDF_INSTALLDIR}/.custom_bin:${PATH}" export PATH="${ESPIDF_INSTALLDIR}/.custom_bin:${PATH}"
export ESPPORT="${ttyselect}" export ESPPORT=$ttyselect
export ESPBAUD=460800 export ESPBAUD=460800
export ESPTARGET=$esp export ESPTARGET=$esp
echo "esp-install-custom version: $versionData" echo -e "Installation Variables:"
echo "esp-idf commmit hash: $commitHash" echo -e "\tesp-install-custom version: $versionData"
echo "install date: $installDate" echo -e "\tesp-idf commmit hash: $commitHash"
echo -e "\tinstall date: $installDate\n"
echo "ESPBAUD = ${ESPBAUD}" echo -e "\nEnvironment Variables:\n"
echo "ESPTARGET = ${ESPTARGET}" echo -e "ESPBAUD = ${ESPBAUD}\n"
echo "ESPPORT = ${ESPPORT}" echo -e "ESPTARGET = ${ESPTARGET}\n"
echo "ESPIDF_INSTALLDIR = ${ESPIDF_INSTALLDIR}" echo -e "ESPPORT = ${ESPPORT}\n"
echo "binDir = ${binDir}" echo -e "ESPIDF_INSTALLDIR = ${ESPIDF_INSTALLDIR}\n"
echo -e "binDir = ${binDir}\n"
echo "Setting alias" echo -e "Setting alias"
alias changeport="source ${binDir}/changeport.sh" alias changeport="source ${binDir}/changeport.sh"
alias changebaud="source ${binDir}/changebaud.sh" alias changebaud="source ${binDir}/changebaud.sh"
alias changeesp="source ${binDir}/changeesp.sh" alias changeesp="source ${binDir}/changeesp.sh"
@@ -60,10 +60,10 @@ alias monitor="idf.py monitor"
alias flashmonitor="idf.py flash monitor" alias flashmonitor="idf.py flash monitor"
alias menuconfig="idf.py menuconfig" alias menuconfig="idf.py menuconfig"
echo "Changing dir to ${ESPIDF_INSTALLDIR}" echo -e "Changing dir to ${ESPIDF_INSTALLDIR}"
cd "${ESPIDF_INSTALLDIR}" cd "${ESPIDF_INSTALLDIR}"
echo "\nAll done :3\n" echo -e "\nAll done :3\n"
############################################### ###############################################
# end esp-idf stuffss I made ################## # end esp-idf stuffss I made ##################
+1 -1
View File
@@ -1 +1 @@
61-beta4.2 61-beta4.3