0

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?

Zanna
  • 70,465
Ubuser
  • 53

2 Answers2

1

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
Zanna
  • 70,465
Ubuser
  • 53
0

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.

KhoPhi
  • 1,888