Files
battery_saving_mode_project/src/service_control.c
2024-09-29 02:33:35 -04:00

12 lines
262 B
C

#include <stdio.h>
#include <stdlib.h>
#include "service_control.h"
int disable_services() {
return system("nmcli radio wifi off && rfkill block bluetooth");
}
int enable_services() {
return system("nmcli radio wifi on && rfkill unblock bluetooth");
}