Display the splash screen when shutting down
- Also, turn the HDMI off after a short wait
This commit is contained in:
@@ -21,18 +21,12 @@ def call_get_output(cmd):
|
||||
class RebootHandler(bbctrl.APIHandler):
|
||||
|
||||
def put_ok(self):
|
||||
subprocess.Popen(['plymouth', 'show-splash'])
|
||||
subprocess.Popen(['plymouth', 'change-mode', '--shutdown'])
|
||||
subprocess.Popen(['killall', 'xinit'])
|
||||
subprocess.Popen(['reboot'])
|
||||
|
||||
|
||||
class ShutdownHandler(bbctrl.APIHandler):
|
||||
|
||||
def put_ok(self):
|
||||
subprocess.Popen(['plymouth', 'show-splash'])
|
||||
subprocess.Popen(['plymouth', 'change-mode', '--shutdown'])
|
||||
subprocess.Popen(['killall', 'xinit'])
|
||||
subprocess.Popen(['shutdown', '-h', 'now'])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user