Skip to content
Snippets Groups Projects

WIP: turris1x-btrfs: refactor package and migration script

Merged Karel Koci requested to merge turris1x-btrfs-new into develop
Compare and
8 files
+ 229
145
Preferences
Compare changes
Files
8
#!/bin/sh
if [ "`cat /proc/mounts | grep '^/dev/mmcblk0p2 / btrfs'`" ]; then
mkdir -p /boot/tefi
mount -t vfat /dev/mmcblk0p1 /boot/tefi
cmp /boot/zImage /boot/tefi/zImage || cp /boot/zImage /boot/tefi/zImage
cmp /boot/fdt /boot/tefi/fdt || cp /boot/fdt /boot/tefi/fdt
umount /boot/tefi
fi