Skip to content

Commit

Permalink
[utils] Handle missing iw command
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed May 31, 2024
1 parent d38781d commit 90c5145
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ function is_raspeberrypi_soc() {
# Disable wlan0 power management to avoid potential network
# connectivity issue during the installation process. This is
# properly handled by Ansible during the playbook execution.
iw "$WLAN_INTERFACE" set power_save off
if command -v iw 2>>"$LOG_FILE"; then
iw "$WLAN_INTERFACE" set power_save off
fi
fi
fi
export RASPBERRYPI_MODEL
Expand Down Expand Up @@ -202,14 +204,15 @@ function required_packages() {
declare extra_packages
if [ "$RASPBERRYPI_MODEL" != "N/A" ]; then
extra_packages+=("i2c-tools")
extra_packages+=("iw")
fi

case "$DISTRO_NAME" in
debian | ubuntu | raspbian | linuxmint | zorin)
[ "$DISTRO_VERSION_ID" == "11" ] && export PYTHON_VERSION="3"
# This is a temporary fix until OVOS is confirmed to work with
# Python 3.12. Requirements are PocketSphinx, tflite-runtime and
# onnxruntime Python packages.
# onnxruntime Python packages.
if [ "$(ver "$DISTRO_VERSION_ID")" -ge "$(ver 24.04)" ]; then
{
apt-get update
Expand Down

0 comments on commit 90c5145

Please sign in to comment.