aboutsummaryrefslogtreecommitdiffstats
path: root/src/jo_lowbat.cpp
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 13:13:07 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 13:13:07 +0100
commit8d453fb28dc7c07f0453d8d1063e5d2e72b9a320 (patch)
treeb7143d7595a797083da4fafe8334c2250404ce74 /src/jo_lowbat.cpp
parentls still not working (diff)
downloadlowbat-gnu-8d453fb28dc7c07f0453d8d1063e5d2e72b9a320.tar.gz
lowbat-gnu-8d453fb28dc7c07f0453d8d1063e5d2e72b9a320.tar.bz2
lowbat-gnu-8d453fb28dc7c07f0453d8d1063e5d2e72b9a320.tar.xz
lowbat-gnu-8d453fb28dc7c07f0453d8d1063e5d2e72b9a320.tar.zst
lowbat-gnu-8d453fb28dc7c07f0453d8d1063e5d2e72b9a320.zip
oop rework in progress
Diffstat (limited to 'src/jo_lowbat.cpp')
-rw-r--r--src/jo_lowbat.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/jo_lowbat.cpp b/src/jo_lowbat.cpp
new file mode 100644
index 0000000..56fe655
--- /dev/null
+++ b/src/jo_lowbat.cpp
@@ -0,0 +1,13 @@
+#include <jo_lowbat.hpp>
+#include <iostream>
+
+using namespace std;
+
+uint8_t
+Lowbat::jo_testAcpi(void) {
+ if (system("acpi > /dev/null 2>&1")) {
+ cout << "acpi is not installed. Please install it in order to run lowbat." << endl;
+ return 1;
+ }
+ return 0;
+}