initial commit
This commit is contained in:
11
src/service_control.c
Normal file
11
src/service_control.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#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");
|
||||
}
|
||||
Reference in New Issue
Block a user