[Uludag-commits] r10054 - trunk/comar/api/comar
svn-uludag at uludag.org.tr
svn-uludag at uludag.org.tr
1 Kas 2006 Çar 16:22:06 EET
Author: gurer
Date: Wed Nov 1 16:22:06 2006
New Revision: 10054
Modified:
trunk/comar/api/comar/network.py
Log:
can sıkıcı çomar restart ettiğinde duran dhcp sorunu çözüldü.
Modified: trunk/comar/api/comar/network.py
=================================================================
--- trunk/comar/api/comar/network.py (original)
+++ trunk/comar/api/comar/network.py Wed Nov 1 16:22:06 2006
@@ -186,6 +186,11 @@
def startAuto(self, timeout=30):
if self.isAuto():
self.stopAuto()
+ import time
+ tt = 5
+ while tt > 0 and self.isAuto():
+ time.sleep(0.2)
+ tt -= 0.2
# -R -Y -N to prevent dhcpcd rewrite nameservers
# we should add nameservers, not rewrite them
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi