From cfa363aeeda6881266b5da46afd478a255ce996e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 04:41:06 +0200 Subject: Adding upstream version 3.53. Signed-off-by: Daniel Baumann --- tests/laptop | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tests/laptop (limited to 'tests/laptop') diff --git a/tests/laptop b/tests/laptop new file mode 100755 index 0000000..c205f4d --- /dev/null +++ b/tests/laptop @@ -0,0 +1,13 @@ +#!/bin/sh +# Causes a task to be selected if the machine appears to be a laptop. + +if [ "$NEW_INSTALL" ]; then + if which laptop-detect >/dev/null 2>&1 && \ + laptop-detect; then + exit 0 # hide; install + else + exit 1 # hide; do not install + fi +else + exit 3 +fi -- cgit v1.2.3