18 lines
269 B
C
18 lines
269 B
C
|
#include <unistd.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main (int argc, char** argv)
|
||
|
{
|
||
|
int i;
|
||
|
char** args;
|
||
|
args = malloc((argc+1)*sizeof(char*));
|
||
|
for(i = 0; i < argc; ++i) {
|
||
|
args[i] = argv[i];
|
||
|
}
|
||
|
args[argc] = NULL;
|
||
|
|
||
|
execv("/opt/xbacklight", args);
|
||
|
return 0;
|
||
|
}
|
||
|
|