Skip to content

Commit

Permalink
Download and unpack source if not already done.
Browse files Browse the repository at this point in the history
  • Loading branch information
abeltrano committed Jan 2, 2024
1 parent 27cac96 commit 1effa97
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .docker/netremote-dev/build-mac80211_hwsim-kmod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ if [[ ! -d ${WSL_SRC_DIRECTORY_BASE} ]]; then
mkdir -p ${WSL_SRC_DIRECTORY_BASE}
fi

cd ${WSL_SRC_DIRECTORY_BASE}
wget ${KERNEL_URL_FILE} ${WGET_XTRA_ARGS:+"${WGET_XTRA_ARGS}"} -O - | tar xzvf -
cd ${WSL_SRC_DIRECTORY}
if [[ ! -d ${WSL_SRC_DIRECTORY_BASE}/${WSL_SRC_DIRECTORY} ]]; then
cd ${WSL_SRC_DIRECTORY_BASE}
wget ${KERNEL_URL_FILE} ${WGET_XTRA_ARGS:+"${WGET_XTRA_ARGS}"} -O - | tar xzvf -
fi

cd ${WSL_SRC_DIRECTORY_BASE}/${WSL_SRC_DIRECTORY}

# Prepare the kernel source with the configuration for the running kernel.
echo "Preparing kernel source with configuration for running kernel..."
Expand Down

0 comments on commit 1effa97

Please sign in to comment.