|
#!/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
|