From ac4eec341bc897aa81f9ae060d95eb610b9f0e93 Mon Sep 17 00:00:00 2001 From: Liam McLoughlin Date: Sat, 21 Apr 2012 14:37:11 +0100 Subject: [PATCH] Added modules as part of firmware update (oops) --- rpi-update | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpi-update b/rpi-update index 06b1c48..b7d3539 100755 --- a/rpi-update +++ b/rpi-update @@ -29,6 +29,8 @@ if $($GITCMD rev-parse &> /dev/null); then $GITCMD fetch --quiet $GITCMD merge origin/master --no-edit --quiet cp ${FW_PATH}/arm${FW_RAM}_start.elf ${FW_PATH}/start.elf + cp -R ${FW_PATH}/modules/* /lib/modules/ + depmod -a echo "If no errors appeared, your firmware was successfully updated" else echo "We're running for the first time" @@ -41,6 +43,8 @@ else echo "We failed! Attmepting to restore your original firmware" cp -R ${FW_PATH}.bak ${FW_PATH} else + cp -R ${FW_PATH}/modules/* /lib/modules/ + depmod -a cp ${FW_PATH}.bak/*.txt ${FW_PATH}/ &> /dev/null cp ${FW_PATH}/arm${FW_RAM}_start.elf ${FW_PATH}/start.elf echo "If no errors appeared, your firmware was successfully setup"