]> git.ipfire.org Git - thirdparty/util-linux.git/blob - rfkill.c
init rfkill basic code
[thirdparty/util-linux.git] / rfkill.c
1 /*
2 * rfkill userspace tool
3 *
4 * Copyright 2009 Johannes Berg <johannes@sipsolutions.net>
5 */
6
7 #include <errno.h>
8 #include <stdio.h>
9 #include <string.h>
10 #include <net/if.h>
11 #include <sys/types.h>
12 #include <sys/stat.h>
13 #include <fcntl.h>
14 #include <unistd.h>
15 #include <stdbool.h>
16
17 #include "rfkill.h"
18 #include "core.h"
19
20 static void version(void)
21 {
22 printf("rfkill %s\n", rfkill_version);
23 }
24
25 int main(int argc, char **argv)
26 {
27 if (argc > 0 && strcmp(*argv, "--version") == 0) {
28 version();
29 return 0;
30 }
31
32 return 0;
33 }