GithubHelp home page GithubHelp logo

Comments (4)

joukewitteveen avatar joukewitteveen commented on June 19, 2024 1

This is a correct usage (the other being systemctl start netctl-auto@wlp8s0), but netctl-auto is listed in netctl.special(7) for a reason. It is not really netctl. To get the profile that was used for connecting when using netctl-auto, you can use

wpa_cli -i wlp8s0 status | sed -n 's/^id_str=//p'

from netctl.

tuckerrc avatar tuckerrc commented on June 19, 2024 1

In case anyone else reads this a year later netctl-auto list will show a * next to the active profile and netctl-auto current shows the active profile.

from netctl.

musteresel avatar musteresel commented on June 19, 2024

@joukewitteveen : I am a bit confused right now...
It seems when using netctl-auto, neither systemd nor netctl "know" which profile is currently connected. Is this intended?

I stumbled upon this because I want to start my vpn (using openconnect and a service unit) everytime a specific profile gets connected. This profile is for a wifi without security, which is why I don't want it to be connected without having a vpn connection.

Btw: Does netctl-auto do roaming?
And: What happens on connection loss? Any way to be noticed (in terms of systemd units) about that?

from netctl.

joukewitteveen avatar joukewitteveen commented on June 19, 2024

Well, it is intended as much as it is unavoidable.

For your VPN case, you could add ExecUpPost='/usr/bin/systemctl start <whatever>' to the profile (and perhaps stop it in ExecDownPre).

The wireless connection in the auto setting is managed by a wpa_actiond script (src/lib/auto.action). In advanced cases, you might want to use wpa_actiond directly instead of through netctl. Although netctl leverages the power of wpa_actiond in a user-friendly manner, it does so at the cost of some configurability.

from netctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.