wip
This commit is contained in:
@@ -3,20 +3,21 @@
|
||||
cd /data/openpilot
|
||||
|
||||
# Initialize a counter for the timeout
|
||||
timeout=5
|
||||
# timeout=5
|
||||
|
||||
ssh-import-key-gh hansonxyz
|
||||
|
||||
# Loop until we have a network connection or the timeout expires
|
||||
while ! ping -c 1 google.com &> /dev/null; do
|
||||
echo "Waiting for internet connection..."
|
||||
sleep 1
|
||||
timeout=$((timeout - 1))
|
||||
if [ "$timeout" -le 0 ]; then
|
||||
echo "Timeout reached. Proceeding without network operations."
|
||||
break
|
||||
fi
|
||||
done
|
||||
# this code doesnt work
|
||||
# # Loop until we have a network connection or the timeout expires
|
||||
# while ! ping -c 1 google.com &> /dev/null; do
|
||||
# echo "Waiting for internet connection..."
|
||||
# sleep 1
|
||||
# timeout=$((timeout - 1))
|
||||
# if [ "$timeout" -le 0 ]; then
|
||||
# echo "Timeout reached. Proceeding without network operations."
|
||||
# break
|
||||
# fi
|
||||
# done
|
||||
if [ "$timeout" -gt 0 ]; then
|
||||
echo "Internet connection established, proceeding with update."
|
||||
|
||||
|
||||
@@ -183,8 +183,8 @@ void DeclinePage::showEvent(QShowEvent *event) {
|
||||
void OnboardingWindow::updateActiveScreen() {
|
||||
if (!accepted_terms) {
|
||||
setCurrentIndex(0);
|
||||
} else if (!training_done && !params.getBool("Passive")) {
|
||||
setCurrentIndex(1);
|
||||
// } else if (!training_done && !params.getBool("Passive")) {
|
||||
// setCurrentIndex(1);
|
||||
} else {
|
||||
emit onboardingDone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user