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

27 lines
555 B
Text
Raw Normal View History

2017-09-24 13:24:24 -04:00
#!/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)"
2020-02-08 02:25:24 -05:00
export IMG_NAME='raspberrypi'
2017-09-24 13:24:24 -04:00
export USERNAME='user'
export PASSWORD='password'
2018-03-23 21:37:29 -04:00
if [ -f "$BASE_DIR/config.sh" ]; then
source "$BASE_DIR/config.sh"
fi
2017-09-24 13:24:24 -04:00
export DEPLOY_DIR="$BASE_DIR/deploy"
export ROOTFS_DIR="$BASE_DIR/rootfs"
export KEYS_DIR="$BASE_DIR/keys"
export FILES_DIR="$BASE_DIR/files"
2017-09-26 04:34:59 -04:00
export IMG_FILE="$DEPLOY_DIR/$IMG_NAME.img"
2017-09-24 13:24:24 -04:00
2017-09-25 12:08:16 -04:00
cd "$BASE_DIR"
mkdir -p "$DEPLOY_DIR"
2017-09-24 13:24:24 -04:00
exec bash -e $@