fix function name
This commit is contained in:
parent
551c699a9f
commit
f2bf06d82c
@ -1,7 +1,7 @@
|
|||||||
#!/bin/python
|
#!/bin/python
|
||||||
import os
|
import os
|
||||||
|
|
||||||
def addScreenToIgnoreList(ignoreFileName = '/tmp/fenrirSuspend', screen = '1', useCurrentScreen = True):
|
def removeScreenFromIgnoreList(ignoreFileName = '/tmp/fenrirSuspend', screen = '1', useCurrentScreen = True):
|
||||||
if useCurrentScreen:
|
if useCurrentScreen:
|
||||||
tty = open('/sys/devices/virtual/tty/tty0/active','r')
|
tty = open('/sys/devices/virtual/tty/tty0/active','r')
|
||||||
screen = str(tty.read()[3:-1])
|
screen = str(tty.read()[3:-1])
|
||||||
@ -23,4 +23,4 @@ def addScreenToIgnoreList(ignoreFileName = '/tmp/fenrirSuspend', screen = '1', u
|
|||||||
fp.write(ignoreScreensStr)
|
fp.write(ignoreScreensStr)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
addScreenToIgnoreList()
|
removeScreenFromIgnoreList()
|
||||||
|
Loading…
Reference in New Issue
Block a user