summaryrefslogtreecommitdiffstats
path: root/PCBSD/pc-sysinstall/backend-query/detect-laptop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'PCBSD/pc-sysinstall/backend-query/detect-laptop.sh')
-rwxr-xr-xPCBSD/pc-sysinstall/backend-query/detect-laptop.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/PCBSD/pc-sysinstall/backend-query/detect-laptop.sh b/PCBSD/pc-sysinstall/backend-query/detect-laptop.sh
new file mode 100755
index 0000000..bf42842
--- /dev/null
+++ b/PCBSD/pc-sysinstall/backend-query/detect-laptop.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+dmesgLine=`dmesg | grep "acpi_acad0"`
+if test "${dmesgLine}" = ""; then
+ echo "laptop: NO"
+else
+ echo "laptop: YES"
+fi
OpenPOWER on IntegriCloud