diff --git a/README.md b/README.md index d592d5d..5f4d2fc 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ scripts/deploy-muos.sh scripts/deploy-knulli.sh scripts/deploy-darkos.sh scripts/deploy-rocknix.sh +scripts/deploy-amberelec.sh ``` Replace `` with the device's hostname or IP address. @@ -106,4 +107,6 @@ The dArkOS/ArkOS script defaults to `/roms` and also supports `--roms2` and `--r The ROCKNIX script defaults to `/storage/roms` and also supports `--root PATH`. +The AmberELEC script defaults to `/storage/roms` and also supports `--root PATH`. + The deployment scripts install from the staged package tree. Run `scripts/build-docker.sh` first. diff --git a/scripts/deploy-amberelec.sh b/scripts/deploy-amberelec.sh new file mode 100755 index 0000000..91c7b1c --- /dev/null +++ b/scripts/deploy-amberelec.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +exec "$(dirname "${BASH_SOURCE[0]}")/deploy.sh" amberelec "$@" diff --git a/scripts/deploy.sh b/scripts/deploy.sh index bdccabb..aee948d 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")/.." platform="${1:-}" if [ -z "$platform" ]; then - echo "Usage: $0 [--root PATH] " >&2 + echo "Usage: $0 [--root PATH] " >&2 exit 2 fi shift @@ -31,6 +31,11 @@ case "$platform" in host="${CODBOZ_ROCKNIX_DEPLOY_HOST:-}" port_directory="ports" ;; + amberelec) + target_root="${CODBOZ_AMBERELEC_DEPLOY_ROOT:-/storage/roms}" + host="${CODBOZ_AMBERELEC_DEPLOY_HOST:-}" + port_directory="ports" + ;; *) echo "Unknown platform: $platform" >&2 exit 2 @@ -51,6 +56,9 @@ usage() { rocknix) echo "Usage: $0 rocknix [--storage|--root PATH] " >&2 ;; + amberelec) + echo "Usage: $0 amberelec [--storage|--root PATH] " >&2 + ;; esac } @@ -86,7 +94,7 @@ while [ "$#" -gt 0 ]; do --storage) target_root="/storage/roms" ;; - -h|--help) + -h | --help) usage exit 0 ;;