Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Illyse
Flash Openwrt Mikrotik Rb952ui 5ac2nD
Commits
351caf98
Commit
351caf98
authored
Sep 03, 2021
by
Félix Sipma
Browse files
teste si les images openwrt sont présentes
parent
f0d11200
Changes
1
Hide whitespace changes
Inline
Side-by-side
flash_openwrt_mikrotik_rb952ui-5ac2nD.py
View file @
351caf98
...
...
@@ -53,6 +53,12 @@ try:
except
:
sys
.
exit
(
RED
+
"Configurer sudo et relancer le script"
+
NC
)
print
(
BLUE
+
"Teste si les images OPENWRT sont présentes."
+
NC
)
if
not
os
.
path
.
isfile
(
OPENWRT_INITRAMFS_IMAGE
):
sys
.
exit
(
RED
+
"Le fichier
\"
"
+
OPENWRT_INITRAMFS_IMAGE
+
"
\"
est introuvable."
+
NC
)
if
not
os
.
path
.
isfile
(
OPENWRT_SYSUPGRADE_IMAGE
):
sys
.
exit
(
RED
+
"Le fichier
\"
"
+
OPENWRT_SYSUPGRADE_IMAGE
+
"
\"
est introuvable."
+
NC
)
print
(
BLUE
+
"Teste si le routeur est accessible sur l'ip "
+
IP_ROUTEROS
+
NC
)
try
:
subprocess
.
check_output
(
"ping -c 1 "
+
IP_ROUTEROS
,
shell
=
True
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment