aboutsummaryrefslogtreecommitdiffstats
path: root/src/jo_lowbat.cpp
blob: 56fe655a11e2ce18989bc65f8faabb157b7e1718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
}