On Thu, 2016-07-28 at 16:02 +0800, Kai Hendry wrote:
> Hi there,
> 
> Since laptops typically have a toggle button for killing and enabled
> wifi, how does one supposed to bind rfkill like a toggle?
> 
> I.e. knowing which state you are in so you can call {block,unblock}
> accordingly?
> 
> Parsing event or list output seems non-trivial.
> 

Don't use the rfkill tool - just open /dev/rfkill yourself, the API is
really simple.

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to