mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
Remove old modules before installing new ones: Avoid removing extra modules
This commit is contained in:
@@ -67,7 +67,8 @@ function update_modules {
|
|||||||
if [[ ${SKIP_KERNEL} -eq 0 ]]; then
|
if [[ ${SKIP_KERNEL} -eq 0 ]]; then
|
||||||
echo " *** Updating kernel modules"
|
echo " *** Updating kernel modules"
|
||||||
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
|
||||||
rm -rf ${FW_MODPATH}/$(basename "${DIR}")
|
BASEDIR=$(basename "${DIR}")
|
||||||
|
rm -rf "${FW_MODPATH}/${BASEDIR}/kernel"
|
||||||
done
|
done
|
||||||
cp -R "${FW_REPOLOCAL}/modules/"* "${FW_MODPATH}/"
|
cp -R "${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
|
||||||
|
|||||||
Reference in New Issue
Block a user