21 lines
295 B
Bash
21 lines
295 B
Bash
#!/bin/sh
|
|
|
|
. /env/config
|
|
|
|
if [ $rootfs_type = ubifs ]; then
|
|
image=${rootfs}.ubi
|
|
else
|
|
image=${rootfs}.$rootfs_type
|
|
fi
|
|
|
|
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
|