I have written a program that transparently logs in to captive portals. As such, I'd like to run this any time that any wireless connection comes up using netcfg. It is possible to do this per-connection in the configuration file by using POST_UP
, but this would require adding it to every connection that currently exists, and any connection that may be created in future, which is not feasible in my situation. I also do not wish to poll for network connections as a daemon. I don't see any information about doing this in man netcfg-profiles
.
How should I approach this? Does netcfg have any built-in configuration that allows a POST_UP
to apply to multiple connections?
It is acceptable for it to also apply to all connections (including wired), but if possible I'd like to avoid it.