mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
Status message updates
Make it clearer that "modules" actually means "kernel modules", and display a message while extracting tarball (which can take a while).
This commit is contained in:
@@ -59,14 +59,14 @@ EOF
|
|||||||
|
|
||||||
function update_modules {
|
function update_modules {
|
||||||
if [[ ${SKIP_KERNEL} -eq 0 ]]; then
|
if [[ ${SKIP_KERNEL} -eq 0 ]]; then
|
||||||
echo " *** Updating modules"
|
echo " *** Updating kernel modules"
|
||||||
cp -vR "${FW_REPOLOCAL}/modules/"* "${FW_MODPATH}/"
|
cp -vR "${FW_REPOLOCAL}/modules/"* "${FW_MODPATH}/"
|
||||||
find "${FW_REPOLOCAL}/modules" -mindepth 1 -maxdepth 1 -type d | while read DIR; do
|
find "${FW_REPOLOCAL}/modules" -mindepth 1 -maxdepth 1 -type d | while read DIR; do
|
||||||
echo " *** depmod $(basename "${DIR}")"
|
echo " *** depmod $(basename "${DIR}")"
|
||||||
depmod -b "${ROOT_PATH}" -a $(basename "${DIR}")
|
depmod -b "${ROOT_PATH}" -a $(basename "${DIR}")
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo " *** As requested, not updating modules"
|
echo " *** As requested, not updating kernel modules"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,6 +159,7 @@ function download_rev {
|
|||||||
echo " *** Downloading specific firmware revision (this will take a few minutes)"
|
echo " *** Downloading specific firmware revision (this will take a few minutes)"
|
||||||
mkdir -p "${FW_REPOLOCAL}"
|
mkdir -p "${FW_REPOLOCAL}"
|
||||||
FW_TARBALL="${FW_REPOLOCAL}/${FW_REV}.tar.gz"
|
FW_TARBALL="${FW_REPOLOCAL}/${FW_REV}.tar.gz"
|
||||||
|
echo " *** Decompressing downloaded firmware archive"
|
||||||
wget "${REPO_URI}/tarball/${FW_REV}" -O "${FW_TARBALL}"
|
wget "${REPO_URI}/tarball/${FW_REV}" -O "${FW_TARBALL}"
|
||||||
tar xzf "${FW_TARBALL}" -C "${FW_REPOLOCAL}" --strip-components=1
|
tar xzf "${FW_TARBALL}" -C "${FW_REPOLOCAL}" --strip-components=1
|
||||||
rm "${FW_TARBALL}"
|
rm "${FW_TARBALL}"
|
||||||
|
|||||||
Reference in New Issue
Block a user