Skip to content

Commit

Permalink
[utils/common] Disable wlan0's power management
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed May 12, 2024
1 parent 149c805 commit 4a7854d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ function is_raspeberrypi_soc() {
if [ -f "$DT_FILE" ]; then
if grep -q -i raspberry "$DT_FILE"; then
RASPBERRYPI_MODEL="$(tr -d '\0' <"$DT_FILE")"

# 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
fi
fi
export RASPBERRYPI_MODEL
Expand Down
1 change: 1 addition & 0 deletions utils/constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export SUPPORTED_DEVICES
export TUI_WINDOW_HEIGHT="35"
export TUI_WINDOW_WIDTH="90"
export USER_ID="$EUID"
export WLAN_INTERFACE="wlan0"
export WSL_FILE=/etc/wsl.conf
export YQ_BINARY_PATH=/tmp/yq
export YQ_URL="https://github.com/mikefarah/yq/releases/download/v4.40.3"

0 comments on commit 4a7854d

Please sign in to comment.