#!/bin/bash set -e if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi apt-get update apt-get install curl git-lfs -y dpkg --add-architecture armhf apt-get update && apt-get upgrade -y apt-get install crossbuild-essential-armhf bc git dosfstools kpartx \ debootstrap qemu-user-static git-lfs -y