From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/system/acpid/lid-closed | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 repo/system/acpid/lid-closed (limited to 'repo/system/acpid/lid-closed') diff --git a/repo/system/acpid/lid-closed b/repo/system/acpid/lid-closed deleted file mode 100644 index 57ffb71..0000000 --- a/repo/system/acpid/lid-closed +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# This script exits with status 0 if the latop's lid is closed, 1 if opened, -# 10 if /proc/acpi/button/lid/LID/state does not exist or is not readable. -set -u - -STATE_FILE='/proc/acpi/button/lid/LID/state' - -verbose=false -[ "${1:-}" = '-v' ] && verbose=true - -if ! [ -r "$STATE_FILE" ]; then - $verbose && echo "$STATE_FILE does not exist or is not readable!" >&2 - exit 10 -fi - -read -r _ state < "$STATE_FILE" || exit 10 - -[ "$state" = 'closed' ]; rc=$? - -$verbose && echo $rc -exit $rc -- cgit v1.2.1