#!/bin/sh

echo "Preparing folder structure"
/bin/mkdir /mnt/overlay
/usr/bin/sudo /bin/mount /dev/mmcblk0p3 /mnt/overlay

echo "Listing modified files"
find /mnt/overlay/dyn/volumio -type f

echo "Restoring folders"
/usr/bin/sudo /bin/umount /mnt/overlay
/bin/rm -rf /mnt/overlay
/bin/sync

