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:
-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
}