+check_for_blocked_devices() {
+ if ! command -v rfkill &>/dev/null ; then
+ echo "Warning: rfkill executable not present, skipping check for blocked devices."
+ return 0
+ fi
+
+ # if we detect any blocked devices (SOFT or HARD) then report
+ if rfkill | grep -w 'blocked' ; then
+ return 0
+ fi
+
+ return 1
+}
+