mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
alarm/raspberrypi-firmware ram config
This commit is contained in:
parent
a25e638a1a
commit
8c2c4ba906
1 changed files with 2 additions and 32 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue