remove unneeded code
[enigma2.git] / lib / python / Tools / DreamboxHardware.py
1 def getFPVersion():
2         from fcntl import ioctl
3         try:
4                 fp = open("/dev/dbox/fp0")
5                 return ioctl(fp.fileno(),0)
6         except IOError:
7                 return None
8
9 def setFPWakeuptime(wutime):
10         from fcntl import ioctl
11         from struct import pack
12
13         try:
14                 fp = open("/dev/dbox/fp0")
15                 ioctl(fp.fileno(), 6, pack('L', wutime)) # set wake up
16         except IOError:
17                 pass