Is there a way to run:
cat /sys/class/net/wlan0/operstate from within a container. If I run it from the hostOS terminal it gives the status of the wlan0 network (up/down, etc…). If I run it from a container terminal it returns:
cat: /sys/class/net/wlan0/operstate: No such file or directory.
I would like to use this to monitor the status of wlan0 from a C application running inside a container.
Or, is there another preferred way to monitor wlan0 status from within a container?