NFIFlash: integrate configuration backup/restore, string corrections
[enigma2.git] / lib / python / Screens / ServiceScan.py
index 1fd32e0678619c8ebaa0fc30db65cb03650826a4..df427f99f339c3723e2077b964d78b16e1651ebc 100644 (file)
@@ -32,26 +32,11 @@ class ServiceScan(Screen):
        def ok(self):
                print "ok"
                if self["scan"].isDone():
-                       self.resetTimeout()
                        self.close()
        
        def cancel(self):
-               self.resetTimeout()
                self.close()
                
-       def setTimeout(self):
-               try:
-                       self.oldtimeoutvalue = open("/sys/module/dvb_core/parameters/dvb_shutdown_timeout", "r").readline()
-                       open("/sys/module/dvb_core/parameters/dvb_shutdown_timeout", "w").write("0")
-               except:
-                       print "[info] no /sys/module/dvb_core/parameters/dvb_shutdown_timeout available"                
-               
-       def resetTimeout(self):
-               try:
-                       open("/sys/module/dvb_core/parameters/dvb_shutdown_timeout", "w").write(self.oldtimeoutvalue)
-               except:
-                       print "[info] no /sys/module/dvb_core/parameters/dvb_shutdown_timeout available"
-       
        def __init__(self, session, scanList):
                Screen.__init__(self, session)
                
@@ -73,9 +58,7 @@ class ServiceScan(Screen):
                                "ok": self.ok,
                                "cancel": self.cancel
                        })
-               
-               self.setTimeout()
-               
+
                self.onFirstExecBegin.append(self.doServiceScan)
 
        def doServiceScan(self):