diff options
author | madmonkey1907 <madfkingmonkey@gmail.com> | 2017-10-26 16:42:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-26 16:42:16 +0300 |
commit | bc388edf312800032bf9688e98e6b540d1f63409 (patch) | |
tree | c13fbdd26eb6a5f17745e3fffae578247eeab025 | |
parent | 5de4194df38dc9ddf76fa2ff6e8d07e50011596f (diff) | |
parent | 4bc56a9cd7b96353b85ebaa0e49b66267d40cf14 (diff) |
Merge pull request #33 from DanTheMan827/patch-1
Add uipause and uiresume
-rw-r--r-- | mod/hakchi/rootfs/etc/preinit.d/b0010_functions | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/hakchi/rootfs/etc/preinit.d/b0010_functions b/mod/hakchi/rootfs/etc/preinit.d/b0010_functions index 02febfa..ff72674 100644 --- a/mod/hakchi/rootfs/etc/preinit.d/b0010_functions +++ b/mod/hakchi/rootfs/etc/preinit.d/b0010_functions @@ -217,6 +217,18 @@ uistart(){ /etc/init.d/S81clover-mcp start } +uipause(){ + lsof -n | grep /dev/fb0 | awk '{ print $1 }' | while read pid; do + kill -s SIGSTOP $pid + done +} + +uiresume(){ + lsof -n | grep /dev/fb0 | awk '{ print $1 }' | while read pid; do + kill -s SIGCONT $pid + done +} + gameover(){ poweroff } |