diff options
| author | Eddy Pedroni <epedroni@pm.me> | 2025-11-16 20:20:19 +0100 |
|---|---|---|
| committer | Eddy Pedroni <epedroni@pm.me> | 2025-11-16 20:20:19 +0100 |
| commit | f333dc380bfdc4c91f288c5041b11a6cf1a1df30 (patch) | |
| tree | 5640bcba12f0ecd311bc354523c2037aea34a7f9 /deployment/start-solo-tool.sh | |
| parent | 1df1fabbafbf1d41e853fcb6325dbb5c1f42ebbf (diff) | |
Add wait until MIDI interface is available
Diffstat (limited to 'deployment/start-solo-tool.sh')
| -rwxr-xr-x | deployment/start-solo-tool.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/deployment/start-solo-tool.sh b/deployment/start-solo-tool.sh index a546df2..5ef98a0 100755 --- a/deployment/start-solo-tool.sh +++ b/deployment/start-solo-tool.sh @@ -6,6 +6,16 @@ until ping -c1 git.0xf7.com >/dev/null 2>&1; do :; done # Get latest version git pull +# Wait until virtual MIDI interface is available +count=0 +until aconnect -l | grep "SoloTool Virtual MIDI"; do + sleep 0.5 + if [[ $count -gt 60 ]] + then + break + fi +done + # Run web UI ST_USER=$(cat $CREDENTIALS_DIRECTORY/st_user) ST_PASS=$(cat $CREDENTIALS_DIRECTORY/st_pass) make web-deploy |
