alarm/raspberrypi-firmware ram config

This commit is contained in:
pepedog 2012-10-20 21:16:34 +02:00
parent a25e638a1a
commit 8c2c4ba906

View file

@ -1,34 +1,4 @@
pre_upgrade() {
startelfmd5="$(md5sum /boot/start.elf| awk '{print $1}')"
for file in /boot/*.elf; do
if [ $file != /boot/start.elf ]
then
currentmd5="$(md5sum $file| awk '{print $1}')"
if [ "$currentmd5" == "$startelfmd5" ]
then
echo "$file" > /tmp/rpifirmware.txt
echo " >>>Current installed start.elf: $file"
fi
fi
done
}
post_upgrade() {
if [ -e /tmp/rpifirmware.txt ]
then
firmwarename=$(head -n 1 /tmp/rpifirmware.txt)
if [ -e "$firmwarename" ]
then
echo " >>>Replacing /boot/start.elf with $firmwarename"
cp $firmwarename /boot/start.elf
fi
fi
echo ">>see http://www.raspberrypi.org/phpBB3/viewtopic.php?f=63&t=20255&start=25#p198247"
echo ">>on how to configure gpu/ram split"
}