This helper is useful to check the state of a sysfs variable, e.g. enabled, disabled, running, offline, etc. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>