Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormadmonkey1907 <madfkingmonkey@gmail.com>2017-10-26 16:42:16 +0300
committerGitHub <noreply@github.com>2017-10-26 16:42:16 +0300
commitbc388edf312800032bf9688e98e6b540d1f63409 (patch)
treec13fbdd26eb6a5f17745e3fffae578247eeab025
parent5de4194df38dc9ddf76fa2ff6e8d07e50011596f (diff)
parent4bc56a9cd7b96353b85ebaa0e49b66267d40cf14 (diff)
Merge pull request #33 from DanTheMan827/patch-1
Add uipause and uiresume
-rw-r--r--mod/hakchi/rootfs/etc/preinit.d/b0010_functions12
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
}