mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
10
rpi-update
10
rpi-update
@@ -122,11 +122,11 @@ function update_firmware {
|
|||||||
echo " *** As requested, not updating kernel"
|
echo " *** As requested, not updating kernel"
|
||||||
fi
|
fi
|
||||||
if [[ ${WANT_SYMVERS} -ne 0 ]]; then
|
if [[ ${WANT_SYMVERS} -ne 0 ]]; then
|
||||||
if [[ -f "${FW_REPOLOCAL}/"Module.symvers ]]; then
|
if [[ -f "${FW_REPOLOCAL}/Module.symvers" ]]; then
|
||||||
cp "${FW_REPOLOCAL}/"Module.symvers "${FW_PATH}/"
|
cp "${FW_REPOLOCAL}/Module.symvers" "${FW_PATH}/"
|
||||||
fi
|
fi
|
||||||
if [[ -f "${FW_REPOLOCAL}/"git_hash ]]; then
|
if [[ -f "${FW_REPOLOCAL}/git_hash" ]]; then
|
||||||
cp "${FW_REPOLOCAL}/"git_hash "${FW_PATH}/"
|
cp "${FW_REPOLOCAL}/git_hash" "${FW_PATH}/"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -251,7 +251,7 @@ if [[ ! -f "${FW_REVFILE}" ]]; then
|
|||||||
fi
|
fi
|
||||||
do_backup
|
do_backup
|
||||||
else
|
else
|
||||||
if [[ $(cat "${FW_REVFILE}") == "$FW_REV" ]]; then
|
if [[ $(cat "${FW_REVFILE}") == "${FW_REV}" ]]; then
|
||||||
echo " *** Your firmware is already up to date"
|
echo " *** Your firmware is already up to date"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user