I'm using the default hotspot interface in Ubuntu 14.04 through Network Manager, but I want to automate the creation of the hotspot when the laptop is connected through Ethernet.
Is there at least a way of activating the hotspot with a command?
I'm using the default hotspot interface in Ubuntu 14.04 through Network Manager, but I want to automate the creation of the hotspot when the laptop is connected through Ethernet.
Is there at least a way of activating the hotspot with a command?
Finally found the way to manage the default Network Manager with the command line. I need to use the command nmcli
:
nmcli -p con up id "Hotspot"
I still need to create some sort of logic. A command with an if statement that activates the hotspot if eth0 is active but I am having troubles figuring it out.
With this command maybe I can work with the logic
nmcli -t -f device,state d
If not you mentioned automation, I think your answer might be this: How to setup an Access Point mode Wi-Fi Hotspot?
A bit more of searching would do.