You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
if ! id | grep -q root; then
|
|
echo "./create_sdcard_img.sh must be run as root:"
|
|
echo "sudo ./create_sdcard_img.sh"
|
|
exit
|
|
fi
|
|
|
|
cd ./deploy/
|
|
if [ ! -d ./root/ ] ; then
|
|
mkdir ./root/ || true
|
|
fi
|
|
|
|
if [ -d ./tmp ] ; then
|
|
rm -rf ./tmp || true
|
|
fi
|
|
|
|
genimage --config genimage.cfg
|
|
|
|
#
|