Save previous version number
@@ -37,6 +37,11 @@ fi
VERSION=`cat /newroot/etc/hifiberry.version`
echo "extracting new kernel..."
+if [ -f /usr/lib/firmware/rpi/zImage ]; then
+ echo "Using zImage from RPI firmware"
+ cp /boot/zImage /boot/zImage.bak
+ cp -rv /usr/lib/firmware/rpi/* /boot
+else
cd /tmp
gunzip -c $UPDATER | tar xf - zImage updater.sh updater2.sh
if [ ! -f zImage ]; then
@@ -46,7 +51,7 @@ else
cp /boot/zImage /boot/zImage.bak
mv zImage /boot/zImage 2>/dev/null
fi
-
+fi
echo "migrating SSH host keys..."
cp /etc/ssh/ssh_host* /newroot/etc/ssh
@@ -105,6 +110,9 @@ else
./updater.sh
fi
+echo "storing version number of previous release..."
+cp /etc/hifiberry.version /newroot/etc/hifiberry.version.previous
+
sync
echo "unmounting $INACTIVE..."
