#!/bin/bash

echo "Erasing Rescue Filesystem..."
/usr/bin/flash_erase /dev/mtd1 0 0
echo "Writing Rescue Filesystem ..."
/usr/bin/dd if=/boot/rescue-arm.pacman.jffs2 of=/dev/mtd1 bs=64K status=progress

echo "So, there you have it"
