Skip to content

Commit

Permalink
Allow disabling rm2fb with environment variable (#127)
Browse files Browse the repository at this point in the history
* Allow disabling rm2fb with environment variable
  • Loading branch information
Eeems authored Jan 20, 2024
1 parent 833dcbd commit 6803172
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ extern "C" {

__attribute__((constructor))
void init() {
if(getenv("RM2FB_DISABLE") != nullptr){
return;
}
std::ios_base::Init i;

std::ifstream device_id_file{"/sys/devices/soc0/machine"};
Expand Down

0 comments on commit 6803172

Please sign in to comment.