Added modules as part of firmware update (oops)

This commit is contained in:
Liam McLoughlin
2012-04-21 14:37:11 +01:00
parent 7d3154e1c7
commit ac4eec341b

View File

@@ -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"