lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.32k stars 307 forks source link

create_ap (cli) does not save the configuration #176

Open sebelk opened 3 years ago

sebelk commented 3 years ago

create_ap (cli, version 0..4.6) does not save the configuration. AFAIK it generates only temporary files. (please correct me if I'm wrong)

systemctl enable create_ap doesn't it ether...:

imagen

It would be nice that either create_ap or via a sistemctl verb generates a persistent configuration.

Thanks in advance.

lakinduakash commented 3 years ago

related to #165

pcrockett commented 1 year ago

You are correct, the CLI only generates temporary files. However there's a handy parameter you can pass to the CLI that will generate a more permanent configuration file for you. Here's an example command that I ran for my hotspot:

create_ap --no-virt --no-haveged \
    --mkconfig ./create_ap.conf \
    -m bridge wlan0 end0 ThisIsATest cheeseNBacon

This generated a config file at ./create_ap.conf. I moved it to /etc/create_ap.conf, which is where the create_ap service reads its configuration from. Run systemctl restart create_ap and you should be good to go.