translate weekdays in fuzzy date display
[enigma2.git] / lib / python / Tools / DreamboxHardware.py
index 4f873e9..5eaaeec 100644 (file)
@@ -5,3 +5,13 @@ def getFPVersion():
                return ioctl(fp.fileno(),0)
        except IOError:
                return None
+
+def setFPWakeuptime(wutime):
+       from fcntl import ioctl
+       from struct import pack
+
+       try:
+               fp = open("/dev/dbox/fp0")
+               ioctl(fp.fileno(), 6, pack('L', wutime)) # set wake up
+       except IOError:
+               pass