I'm using a hotspot on Ubuntu 17.04 to share my Internet connection with other devices. But when I restart or suspend the computer, I need to activate the hotspot manually each time.
Is there some option, script, or command to launch the hotspot automatically after wakeup?
you can do it with Network Manager. Check the name of the connection which represents the hotspot that you want to start when its active or just guest
then to make it start automatically
test it with reboot
You could open a terminal and type
If it brings up your Hotspot you could create a file using
to let your Hotspot start on system startup. But I am not sure if this will also do the trick if your machine comes up from suspend.
Maybe then you would need to create two files with
Edit them both with
and paste
into them. Then you would need to make them both executable with
and try your luck again...
The script works on my machine, but as I am connected only wireless and I am using the same name of the SSID for the test of the Hotspot and after a while, even after sleep, the adapter connects to the standard wifi operations and the Hotspot is getting disabled and wifi is getting enabled.