init
This commit is contained in:
15
script.sh
Executable file
15
script.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user