1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
raspberrypi-build/run
2020-02-08 12:25:24 +05:00

26 lines
555 B
Bash
Executable file

#!/bin/bash -e
export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
export BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export IMG_NAME='raspberrypi'
export USERNAME='user'
export PASSWORD='password'
if [ -f "$BASE_DIR/config.sh" ]; then
source "$BASE_DIR/config.sh"
fi
export DEPLOY_DIR="$BASE_DIR/deploy"
export ROOTFS_DIR="$BASE_DIR/rootfs"
export KEYS_DIR="$BASE_DIR/keys"
export FILES_DIR="$BASE_DIR/files"
export IMG_FILE="$DEPLOY_DIR/$IMG_NAME.img"
cd "$BASE_DIR"
mkdir -p "$DEPLOY_DIR"
exec bash -e $@