fix function name

This commit is contained in:
chrys 2018-03-13 23:44:52 +01:00
parent 551c699a9f
commit f2bf06d82c

View File

@ -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()