]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/misc-progs/wlanapctrl.c
9 int main(int argc
, char *argv
[]){
11 printf("invalid parameter(s)\n");
18 if (strcmp(argv
[1], "start") == 0){
19 safe_system("cp /var/ipfire/wlanap/hostapd.* /etc/");
20 safe_system("/etc/init.d/hostapd start");
21 }else if (strcmp(argv
[1], "stop") == 0){
22 safe_system("/etc/init.d/hostapd stop");
23 }else if (strcmp(argv
[1], "restart") == 0){
24 safe_system("cp /var/ipfire/wlanap/hostapd.* /etc/");
25 safe_system("/etc/init.d/hostapd restart");
26 }else if (strcmp(argv
[1], "status") == 0){
27 safe_system("/etc/init.d/hostapd status");
29 printf("invalid parameter(s)\n");