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.
BeagleV-Fire-ubuntu/07_create_sdcard_img.sh

25 lines
345 B
Bash

#!/bin/bash
if ! id | grep -q root; then
echo "./07_create_sdcard_img.sh must be run as root:"
echo "sudo ./07_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
if [ -d ./tmp ] ; then
rm -rf ./tmp || true
fi
#