Skip to content

Commit

Permalink
[standby.py] add /usr/scripts/standby.sh after return from standby
Browse files Browse the repository at this point in the history
  • Loading branch information
koivo committed Dec 14, 2014
1 parent 4e14683 commit df6099e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/python/Screens/Standby.py
@@ -1,3 +1,4 @@
import os
from Screens.Screen import Screen
from Components.ActionMap import ActionMap
from Components.config import config
Expand Down Expand Up @@ -38,6 +39,11 @@ def Power(self):
PowerTimer.resetTimerWakeup()
RecordTimer.resetTimerWakeup()
#kill me
if os.path.exists("/usr/scripts/standby.sh") is True:
os.system("chmod 755 /usr/scripts/standby.sh")
os.system("/usr/scripts/standby.sh")
else:
print "/usr/scripts/standby.sh not found"
self.close(True)

def setMute(self):
Expand Down

0 comments on commit df6099e

Please sign in to comment.