You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
426 B
Bash
19 lines
426 B
Bash
6 years ago
|
(
|
||
|
export TEXTDOMAIN=wifi-check
|
||
|
|
||
|
. gettext.sh
|
||
|
|
||
|
if [ ! -x /usr/sbin/rfkill ]; then
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
if ! /usr/sbin/rfkill list wifi | grep -q "Soft blocked: yes" ; then
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
echo
|
||
|
/usr/bin/gettext -s "Wi-Fi is currently blocked by rfkill."
|
||
|
/usr/bin/gettext -s "Use raspi-config to set the country before use."
|
||
|
echo
|
||
|
)
|