linux-wifi-hotspot icon indicating copy to clipboard operation
linux-wifi-hotspot copied to clipboard

create_ap (cli) does not save the configuration

Open sebelk opened this issue 3 years ago • 2 comments

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.

sebelk avatar Aug 01 '21 15:08 sebelk

related to #165

lakinduakash avatar Sep 25 '21 00:09 lakinduakash

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.

pcrockett avatar Sep 09 '23 17:09 pcrockett