summaryrefslogtreecommitdiff
path: root/src/usr/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/libexec')
-rwxr-xr-xsrc/usr/libexec/stackrpms-acer-chromebook/disable-powerbutton-loop23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/usr/libexec/stackrpms-acer-chromebook/disable-powerbutton-loop b/src/usr/libexec/stackrpms-acer-chromebook/disable-powerbutton-loop
new file mode 100755
index 0000000..9bdc4cb
--- /dev/null
+++ b/src/usr/libexec/stackrpms-acer-chromebook/disable-powerbutton-loop
@@ -0,0 +1,23 @@
+#!/bin/sh
+# File: /usr/libexec/stackrpms-acer-chromebook/disable-powerbutton-loop
+# Location: stackrpms-acer-chromebook package
+# Author: bgstack15
+# Startdate: 2024-04-29-2 19:56
+# Title: Sleep forever
+# Project: disable-powerbutton
+# Purpose: Sleep forever until a safety file exists
+# History:
+# Usage:
+# called by disable-powerbutton-daemon
+# Reference:
+# Related:
+# /usr/bin/disable-powerbutton-daemon
+# Improve:
+# Probably should be a very small inotify loop
+# Dependencies:
+# Documentation:
+test -z "${DP_SAFETY_FILE}" && DP_SAFETY_FILE=/tmp/stop-disable-powerbutton
+while test ! -f "${DP_SAFETY_FILE}" ;
+do
+ sleep 900
+done
bgstack15