diff options
author | B. Stack <bgstack15@gmail.com> | 2024-04-30 17:07:32 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2024-04-30 17:07:32 -0400 |
commit | da13d05a83432f2c0c453d19e6b602b9e6bad610 (patch) | |
tree | 83e435c8b92dc03e5573d7167d3ecacc702bbc0c /src/usr/libexec | |
parent | deb should be ready now (diff) | |
download | stackrpms-acer-chromebook-da13d05a83432f2c0c453d19e6b602b9e6bad610.tar.gz stackrpms-acer-chromebook-da13d05a83432f2c0c453d19e6b602b9e6bad610.tar.bz2 stackrpms-acer-chromebook-da13d05a83432f2c0c453d19e6b602b9e6bad610.zip |
add disable-powerbutton daemon and tools
Diffstat (limited to 'src/usr/libexec')
-rwxr-xr-x | src/usr/libexec/stackrpms-acer-chromebook/disable-powerbutton-loop | 23 |
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 |