From b2eda1a14c586d97f2e92463692727d78dcc609a Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Sun, 10 May 2020 14:34:27 -0500 Subject: [PATCH] unblock wifi even if wifi not configured --- install.test | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.test b/install.test index 7c9287d..cd8d665 100755 --- a/install.test +++ b/install.test @@ -417,9 +417,13 @@ if [ ${version} -gt 4 ]; then cfg=1 fi + if [ -f "${rfkill}" ]; then + echo "Unblocking wifi with rfkill ..." + ${rfkill} unblock all + fi + nic="wlan0" if grep -qw "${nic}" /proc/net/dev; then - echo "Configure ${nic} ..." wpaConf="/etc/wpa_supplicant/wpa_supplicant.conf" crda="/etc/default/crda" @@ -432,10 +436,6 @@ if [ ${version} -gt 4 ]; then if [ -f "${crda}" ]; then awk -i inplace -F'=' -v country="$country" '/REGDOMAIN=/{$0=$1"="country} {print $0}' ${crda} fi - if [ -f "${rfkill}" ]; then - echo "Unblocking wifi with rfkill ..." - ${rfkill} unblock all - fi echo "Adding ${nic} to openmedivault database ..." jq --null-input --compact-output \ "{uuid: \"${OMV_CONFIGOBJECT_NEW_UUID}\", devicename: \"${nic}\", type: \"wireless\", method: \"dhcp\", method6: \"dhcp\", wpassid: \"${wifiName}\", wpapsk: \"${wifiPass}\"}" | \