renamed and updated
This commit is contained in:
@@ -9,8 +9,9 @@ some features require user to have passwordless sudo rights
|
|||||||
Literally the most schizophrenically overengineered thing I have ever made. idk why I did that
|
Literally the most schizophrenically overengineered thing I have ever made. idk why I did that
|
||||||
|
|
||||||
## Quick start
|
## Quick start
|
||||||
`git clone https://github.com/PrincessPi3/esp-install-custom.git ~`
|
`cd ~`
|
||||||
`bash ~/reinstall-esp-idf.sh`
|
`git clone https://github.com/PrincessPi3/esp-idf-tools.git ~/esp-idf-tools`
|
||||||
|
`bash ~/esp-idf-tools/esp-idf-tools-cmd.sh`
|
||||||
`source ~/.zshrc`
|
`source ~/.zshrc`
|
||||||
`get_idf`
|
`get_idf`
|
||||||
|
|
||||||
@@ -40,57 +41,57 @@ Modes:
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
reinstalls non-interactively with no delays, logouts, or reboots. run without any argument
|
reinstalls non-interactively with no delays, logouts, or reboots. run without any argument
|
||||||
bash reinstall-esp-idf.sh
|
bash esp-idf-tools-cmd.sh
|
||||||
|
|
||||||
test:
|
test:
|
||||||
tests the script. very fast. minimal actions taken. no reinstall is done
|
tests the script. very fast. minimal actions taken. no reinstall is done
|
||||||
bash reinstall-esp-idf.sh test
|
bash esp-idf-tools-cmd.sh test
|
||||||
bash reinstall-esp-idf.sh t
|
bash esp-idf-tools-cmd.sh t
|
||||||
|
|
||||||
retool:
|
retool:
|
||||||
reinstalls bins and export.sh, nothing else
|
reinstalls bins and export.sh, nothing else
|
||||||
bash reinstall-esp-idf.sh retool
|
bash esp-idf-tools-cmd.sh retool
|
||||||
bash reinstall-esp-idf.sh rt
|
bash esp-idf-tools-cmd.sh rt
|
||||||
|
|
||||||
cron:
|
cron:
|
||||||
runs noninteractively with forced user logout and automatic reboot, plus delays
|
runs noninteractively with forced user logout and automatic reboot, plus delays
|
||||||
bash reinstall-esp-idf.sh cron
|
bash esp-idf-tools-cmd.sh cron
|
||||||
bash reinstall-esp-idf.sh c
|
bash esp-idf-tools-cmd.sh c
|
||||||
|
|
||||||
interactive:
|
interactive:
|
||||||
interactively installs/reinstalls esp-idf
|
interactively installs/reinstalls esp-idf
|
||||||
bash reinstall-esp-idf.sh interactive
|
bash esp-idf-tools-cmd.sh interactive
|
||||||
bash reinstall-esp-idf.sh i
|
bash esp-idf-tools-cmd.sh i
|
||||||
|
|
||||||
nuke:
|
nuke:
|
||||||
full delete and re-download and install
|
full delete and re-download and install
|
||||||
bash reinstall-esp-idf.sh nuke
|
bash esp-idf-tools-cmd.sh nuke
|
||||||
bash reinstall-esp-idf.sh n
|
bash esp-idf-tools-cmd.sh n
|
||||||
|
|
||||||
clearlogs:
|
clearlogs:
|
||||||
clear logs
|
clear logs
|
||||||
bash reinstall-esp-idf.sh clearlogs
|
bash esp-idf-tools-cmd.sh clearlogs
|
||||||
bash reinstall-esp-idf.sh clear
|
bash esp-idf-tools-cmd.sh clear
|
||||||
bash reinstall-esp-idf.sh clean
|
bash esp-idf-tools-cmd.sh clean
|
||||||
bash reinstall-esp-idf.sh cl
|
bash esp-idf-tools-cmd.sh cl
|
||||||
|
|
||||||
help:
|
help:
|
||||||
display this help text
|
display this help text
|
||||||
bash reinstall-esp-idf.sh help
|
bash esp-idf-tools-cmd.sh help
|
||||||
bash reinstall-esp-idf.sh h
|
bash esp-idf-tools-cmd.sh h
|
||||||
bash reinstall-esp-idf.sh -h
|
bash esp-idf-tools-cmd.sh -h
|
||||||
bash reinstall-esp-idf.sh --help
|
bash esp-idf-tools-cmd.sh --help
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
uninstall esp-idf
|
uninstall esp-idf
|
||||||
bash reinstall-esp-idf.sh uninstall
|
bash esp-idf-tools-cmd.sh uninstall
|
||||||
```
|
```
|
||||||
|
|
||||||
## Ailases
|
## Ailases
|
||||||
```
|
```
|
||||||
run_esp_reinstall
|
run_esp_reinstall
|
||||||
Updates the esp-install-custom code via git, displays the script version, then executes reinstall-esp-idf.sh with optional arument.
|
Updates the esp-install-custom code via git, displays the script version, then executes esp-idf-tools-cmd.sh with optional arument.
|
||||||
Takes identical arguments to running reinstall-esp-idf.sh manually
|
Takes identical arguments to running esp-idf-tools-cmd.sh manually
|
||||||
run_esp_reinstall
|
run_esp_reinstall
|
||||||
run_esp_reinstall clean
|
run_esp_reinstall clean
|
||||||
run_esp_reinstall nuke
|
run_esp_reinstall nuke
|
||||||
@@ -119,5 +120,5 @@ cron:
|
|||||||
reinstall from master everyday at 4am, logging out users with warn delays and rebooting after
|
reinstall from master everyday at 4am, logging out users with warn delays and rebooting after
|
||||||
`crontab -e`
|
`crontab -e`
|
||||||
|
|
||||||
0 4 * * * bash $HOME/esp/esp-install-custom/reinstall-esp-idf.sh cron
|
0 4 * * * bash $HOME/esp/esp-install-custom/esp-idf-tools-cmd.sh cron
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ function testAppendAlias() {
|
|||||||
|
|
||||||
function handleAliasEnviron() {
|
function handleAliasEnviron() {
|
||||||
testAppendAlias "get_idf" "alias get_idf='. $exportScript'"
|
testAppendAlias "get_idf" "alias get_idf='. $exportScript'"
|
||||||
testAppendAlias "run_esp_reinstall" "alias run_esp_reinstall='git -C $runningDir pull;echo -e \"\nOld Version:\";tail -1 $versionData;echo -e \"\n\";bash $runningDir/reinstall-esp-idf.sh'"
|
testAppendAlias "run_esp_reinstall" "alias run_esp_reinstall='git -C $runningDir pull;echo -e \"\nOld Version:\";tail -1 $versionData;echo -e \"\n\";bash $runningDir/esp-idf-tools-cmd.sh'"
|
||||||
testAppendAlias "esp_install_monitor" "alias esp_install_monitor='tail -n 75 -f $log'"
|
testAppendAlias "esp_install_monitor" "alias esp_install_monitor='tail -n 75 -f $log'"
|
||||||
testAppendAlias "esp_install_logs" "alias esp_install_logs='less $versionData;less $log'"
|
testAppendAlias "esp_install_logs" "alias esp_install_logs='less $versionData;less $log'"
|
||||||
|
|
||||||
@@ -353,7 +353,7 @@ handleReboot() {
|
|||||||
# warning not work how i make it work fuckin ell
|
# warning not work how i make it work fuckin ell
|
||||||
handleWarnAllUsers() {
|
handleWarnAllUsers() {
|
||||||
# writeToLog "Warning all users of impending logout (function called)\n"
|
# writeToLog "Warning all users of impending logout (function called)\n"
|
||||||
warningString="\nWARNING:\n\tReinstalling esp-idf:\n\tForce logut in $sleepMins minutes!!\n\tSave and log out!\n\tmonitor with \`esp+monitor\`\n\tterminate with \`sudo killall reinstall-esp-idf.sh\`\n"
|
warningString="\nWARNING:\n\tReinstalling esp-idf:\n\tForce logut in $sleepMins minutes!!\n\tSave and log out!\n\tmonitor with \`esp+monitor\`\n\tterminate with \`sudo killall esp-idf-tools-cmd.sh\`\n"
|
||||||
|
|
||||||
writeToLog "$warningString"
|
writeToLog "$warningString"
|
||||||
|
|
||||||
@@ -1,50 +1,50 @@
|
|||||||
Modes:
|
Modes:
|
||||||
default:
|
default:
|
||||||
reinstalls non-interactively with no delays, logouts, or reboots
|
reinstalls non-interactively with no delays, logouts, or reboots
|
||||||
`bash reinstall-esp-idf.sh`
|
`bash esp-idf-tools-cmd.sh`
|
||||||
|
|
||||||
test:
|
test:
|
||||||
tests the script. very fast. minimal actions taken. no reinstall is done
|
tests the script. very fast. minimal actions taken. no reinstall is done
|
||||||
`bash reinstall-esp-idf.sh test`
|
`bash esp-idf-tools-cmd.sh test`
|
||||||
`bash reinstall-esp-idf.sh t`
|
`bash esp-idf-tools-cmd.sh t`
|
||||||
|
|
||||||
retool:
|
retool:
|
||||||
reinstalls bins and export.sh, nothing else
|
reinstalls bins and export.sh, nothing else
|
||||||
`bash reinstall-esp-idf.sh retool`
|
`bash esp-idf-tools-cmd.sh retool`
|
||||||
`bash reinstall-esp-idf.sh rt`
|
`bash esp-idf-tools-cmd.sh rt`
|
||||||
|
|
||||||
cron:
|
cron:
|
||||||
runs noninteractively with forced user logout and automatic reboot, plus delays
|
runs noninteractively with forced user logout and automatic reboot, plus delays
|
||||||
`bash reinstall-esp-idf.sh cron`
|
`bash esp-idf-tools-cmd.sh cron`
|
||||||
`bash reinstall-esp-idf.sh c`
|
`bash esp-idf-tools-cmd.sh c`
|
||||||
|
|
||||||
interactive:
|
interactive:
|
||||||
interactively installs/reinstalls esp-idf
|
interactively installs/reinstalls esp-idf
|
||||||
`bash reinstall-esp-idf.sh interactive`
|
`bash esp-idf-tools-cmd.sh interactive`
|
||||||
`bash reinstall-esp-idf.sh i`
|
`bash esp-idf-tools-cmd.sh i`
|
||||||
|
|
||||||
nuke:
|
nuke:
|
||||||
full delete and re-download and install
|
full delete and re-download and install
|
||||||
`bash reinstall-esp-idf.sh nuke`
|
`bash esp-idf-tools-cmd.sh nuke`
|
||||||
`bash reinstall-esp-idf.sh n`
|
`bash esp-idf-tools-cmd.sh n`
|
||||||
|
|
||||||
clearlogs:
|
clearlogs:
|
||||||
clear logs
|
clear logs
|
||||||
`bash reinstall-esp-idf.sh clearlogs`
|
`bash esp-idf-tools-cmd.sh clearlogs`
|
||||||
`bash reinstall-esp-idf.sh clear`
|
`bash esp-idf-tools-cmd.sh clear`
|
||||||
`bash reinstall-esp-idf.sh clean`
|
`bash esp-idf-tools-cmd.sh clean`
|
||||||
`bash reinstall-esp-idf.sh cl`
|
`bash esp-idf-tools-cmd.sh cl`
|
||||||
|
|
||||||
help:
|
help:
|
||||||
display this help text
|
display this help text
|
||||||
`bash reinstall-esp-idf.sh help`
|
`bash esp-idf-tools-cmd.sh help`
|
||||||
`bash reinstall-esp-idf.sh h`
|
`bash esp-idf-tools-cmd.sh h`
|
||||||
`bash reinstall-esp-idf.sh -h`
|
`bash esp-idf-tools-cmd.sh -h`
|
||||||
`bash reinstall-esp-idf.sh --help`
|
`bash esp-idf-tools-cmd.sh --help`
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
uninstall esp-idf
|
uninstall esp-idf
|
||||||
`bash reinstall-esp-idf.sh uninstall`
|
`bash esp-idf-tools-cmd.sh uninstall`
|
||||||
|
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -82,8 +82,8 @@ Features:
|
|||||||
|
|
||||||
Aliases:
|
Aliases:
|
||||||
run_esp_reinstall
|
run_esp_reinstall
|
||||||
Updates the esp-install-custom code via git, displays the script version, then executes reinstall-esp-idf.sh with optional arument.
|
Updates the esp-install-custom code via git, displays the script version, then executes esp-idf-tools-cmd.sh with optional arument.
|
||||||
Takes identical arguments to running reinstall-esp-idf.sh manually
|
Takes identical arguments to running esp-idf-tools-cmd.sh manually
|
||||||
run_esp_reinstall
|
run_esp_reinstall
|
||||||
run_esp_reinstall clean
|
run_esp_reinstall clean
|
||||||
run_esp_reinstall nuke
|
run_esp_reinstall nuke
|
||||||
@@ -109,7 +109,7 @@ Helpful Stuff:
|
|||||||
reinstall from master everyday at 4am, logging out users with warn delays and rebooting after
|
reinstall from master everyday at 4am, logging out users with warn delays and rebooting after
|
||||||
`crontab -e`
|
`crontab -e`
|
||||||
add below to bottom of file:
|
add below to bottom of file:
|
||||||
0 4 * * * bash $HOME/esp/esp-install-custom/reinstall-esp-idf.sh cron
|
0 4 * * * bash $HOME/esp/esp-install-custom/esp-idf-tools-cmd.sh cron
|
||||||
|
|
||||||
monitor log file during install:
|
monitor log file during install:
|
||||||
`tail -n 75 $ESPIDF_INSTALLDIR/install.log;`
|
`tail -n 75 $ESPIDF_INSTALLDIR/install.log;`
|
||||||
|
|||||||
@@ -1,25 +1,3 @@
|
|||||||
test:
|
|
||||||
bash reinstall-esp-idf.sh help
|
|
||||||
bash reinstall-esp-idf.sh --help
|
|
||||||
bash reinstall-esp-idf.sh -h
|
|
||||||
bash reinstall-esp-idf.sh h
|
|
||||||
bash reinstall-esp-idf.sh test
|
|
||||||
bash reinstall-esp-idf.sh t
|
|
||||||
bash reinstall-esp-idf.sh retool
|
|
||||||
bash reinstall-esp-idf.sh rt
|
|
||||||
bash reinstall-esp-idf.sh
|
|
||||||
bash reinstall-esp-idf.sh clearlogs
|
|
||||||
bash reinstall-esp-idf.sh clear
|
|
||||||
bash reinstall-esp-idf.sh clean
|
|
||||||
bash reinstall-esp-idf.sh cl
|
|
||||||
bash reinstall-esp-idf.sh interactive
|
|
||||||
bash reinstall-esp-idf.sh i
|
|
||||||
bash reinstall-esp-idf.sh nuke
|
|
||||||
bash reinstall-esp-idf.sh n
|
|
||||||
bash reinstall-esp-idf.sh uninstall
|
|
||||||
bash reinstall-esp-idf.sh cron
|
|
||||||
bash reinstall-esp-idf.sh c
|
|
||||||
|
|
||||||
mayhaps support bash?
|
mayhaps support bash?
|
||||||
# mayhaps it already works mayhaps? test
|
# mayhaps it already works mayhaps? test
|
||||||
|
|
||||||
@@ -28,12 +6,6 @@ figure out how to message users properly
|
|||||||
|
|
||||||
verbosity levels?
|
verbosity levels?
|
||||||
less verbose on git commands and installers?
|
less verbose on git commands and installers?
|
||||||
|
|
||||||
get current esp-idf version plox
|
|
||||||
|
|
||||||
document:
|
|
||||||
run_esp_reinstall
|
|
||||||
esp_install_monitor
|
|
||||||
esp_install_logs
|
esp_install_logs
|
||||||
|
|
||||||
possibly upgrade step-flash-monitor with better resets
|
possibly upgrade step-flash-monitor with better resets
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
8-rc-3
|
8-rc-4-dev
|
||||||
|
|||||||
Reference in New Issue
Block a user