]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/misc-progs/wlanapctrl.c
Modified WLanAP CGI to handle WLan on green and use internal mac filter
[people/pmueller/ipfire-2.x.git] / src / misc-progs / wlanapctrl.c
index 295604f8d1c45223bf85f18765466c79ca37cfb2..d0ece2e262ffc777f65be105ce42999ab5d4c50e 100644 (file)
@@ -16,11 +16,12 @@ int main(int argc, char *argv[]){
                exit(1);
 
        if (strcmp(argv[1], "start") == 0){
+               safe_system("cp /var/ipfire/wlanap/hostapd.* /etc/");
                safe_system("/etc/init.d/hostapd start");
        }else if (strcmp(argv[1], "stop") == 0){
                safe_system("/etc/init.d/hostapd stop");
        }else if (strcmp(argv[1], "restart") == 0){
-               safe_system("cp /var/ipfire/wlanap/hostapd.conf /etc/hostapd.conf");
+               safe_system("cp /var/ipfire/wlanap/hostapd.* /etc/");
                safe_system("/etc/init.d/hostapd restart");
        }else if (strcmp(argv[1], "status") == 0){
                safe_system("/etc/init.d/hostapd status");