This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # 等待網路就緒 | |
| echo "⏳ 等待網路..." | |
| until curl -fsSL --max-time 5 https://google.com &> /dev/null; do | |
| sleep 2 | |
| done | |
| echo "✅ 網路就緒" | |
| # 如果已經安裝過就跳過 |