summaryrefslogtreecommitdiffstats
path: root/board/ipe337/env/bin/reset_ageing
blob: 2c95ae762e4ead81231a66ff7882c7850d9b7f3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

. /env/config

image=/env/bin/magic.bin
part=$ageing

if [ \! -e "$part" ]; then
	echo "Partition $part does not exist"
	exit 1
fi

unprotect $part

echo
echo "Erasing partition $part"
erase $part

echo
echo "Creating magic"
cp $image $part

echo
echo "Testing partition"
. /env/bin/_alternate

protect $part