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.34k stars 307 forks source link

Use with `systemctl enable`? #95

Closed ctjlewis closed 4 years ago

ctjlewis commented 4 years ago

In create_ap, we could run on startup with systemctl enable create_ap, but systemctl enable wihotspot does not work.

Does anyone know how to accomplish this? I will submit a PR for the README if so.

lakinduakash commented 4 years ago

wihotspot is referred to GUI. I think starting GUI as a service does not make sense. create_ap is the backend used by the GUI.

I think your problem is create_ap service does not use the configurations saved by the GUI. It is true. create_ap use different config file that is located at /etc/create_ap.conf. But GUI use this /etc/wh.config . The service file is at here. I think it can be changed to the new config file location. It is also required to copy the /etc/create_ap.confto/etc/wh.config` when installing the software.

Thank you for reporting the issue :)