projets
/
ongolaboy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbdb44f
)
Test de connectivité et relance
author
Willy MANGA
<willy.manga@auf.org>
Mon, 14 Feb 2011 12:35:45 +0000
(13:35 +0100)
committer
Willy MANGA
<willy.manga@auf.org>
Mon, 14 Feb 2011 12:35:45 +0000
(13:35 +0100)
On vérifie si on est toujours en liaison avec le FAI;
sinon on relance le service avec `pon`
pppoe-reconnect
patch
|
blob
|
blame
|
history
diff --git
a/pppoe-reconnect
b/pppoe-reconnect
index
1dd89f0
..
f7eb9f8
100644
(file)
--- a/
pppoe-reconnect
+++ b/
pppoe-reconnect
@@
-3,4
+3,10
@@
# on vérifie que la connexion PPPoE est fonctionnelle et si ce n'est pas le cas et
# que le service est inactif, on relance la tentative de connexion
+PPPoE_ORANGE=10.10.4.4
+PROVIDER='dsl-provider'
+if !(ping -c 4 -I ppp0 $PPPoE_ORANGE)
+then
+ pon $PROVIDER
+fi