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