From 29d6d4a007de4c87f399d3a01ae38653e0e87150 Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Sun, 10 May 2020 14:01:22 -0500 Subject: [PATCH] unblock wifi --- install.test | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.test b/install.test index 8285c43..9d02501 100755 --- a/install.test +++ b/install.test @@ -43,6 +43,7 @@ keyserver="hkp://keyserver.ubuntu.com:80" omvKey="/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc" omvRepo="http://packages.openmediavault.org/public" omvSources="/etc/apt/sources.list.d/openmediavault.list" +rfkill="/usr/sbin/rfkill" smbOptions="min receivefile size = 16384\nwrite cache size = 524288\ngetwd cache = yes\nsocket options = TCP_NODELAY IPTOS_LOWDELAY" url="https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/" @@ -432,6 +433,11 @@ 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}\"}" | \ omv-confdbadm update "conf.system.network.interface" -