summaryrefslogtreecommitdiffstats
path: root/defaultenv/bin/update_rootfs
blob: 63663150c2b04e38becb37281478c9db9cc3c6d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

. /env/config

image=$rootfsimage

if [ x$1 = xnand ]; then
	part=/dev/nand0.root.bb
elif [ x$1 = xnor ]; then
	part=/dev/nor0.root
else
	echo "usage: $0 nor|nand [imagename]"
	exit 1
fi

. /env/bin/_update $2