Use '-n' instead of '-v' to test if WPA_COUNTRY is set
Apparently -v doesn't work in all shells.
This commit is contained in:
parent
522ee197b9
commit
4203bc1519
|
@ -27,7 +27,7 @@ fi
|
||||||
|
|
||||||
# Disable wifi on 5GHz models if WPA_COUNTRY is not set
|
# Disable wifi on 5GHz models if WPA_COUNTRY is not set
|
||||||
mkdir -p "${ROOTFS_DIR}/var/lib/systemd/rfkill/"
|
mkdir -p "${ROOTFS_DIR}/var/lib/systemd/rfkill/"
|
||||||
if [ -v WPA_COUNTRY ]; then
|
if [ -n "$WPA_COUNTRY" ]; then
|
||||||
echo 0 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-3f300000.mmcnr:wlan"
|
echo 0 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-3f300000.mmcnr:wlan"
|
||||||
echo 0 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-fe300000.mmcnr:wlan"
|
echo 0 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-fe300000.mmcnr:wlan"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user