15 lines
354 B
Bash
Executable File
15 lines
354 B
Bash
Executable File
#!/bin/bash
|
|
nmcli dev wifi connect "Redmi Note 12 Pro" password "kingcard"
|
|
check_internet() {
|
|
ping -c 4 8.8.8.8 > /dev/null 2>&1
|
|
return $?
|
|
}
|
|
if check_internet; then
|
|
echo "Connecté à internet"
|
|
python Time_Lapse_Connection.py
|
|
python Send_data_stocked.py
|
|
else
|
|
echo "pas connecté à internet"
|
|
python Time_Lapse_NoConnection.py
|
|
python Automate.py
|
|
fi |