#!/bin/sh
set -e

STATE_FILE=/var/lib/arm-toolchains/repo-transitioned

if [ "$1" = "configure" ] && [ ! -f "$STATE_FILE" ]; then
cat <<'EOF'
==================================================================
Arm Toolchains Repository Transition

Arm Toolchains packages are now provided from a new repository
location with updated signing keys.

This system has been configured to trust and use the new
repository location at the existing server.

No action is required. Existing installations will continue to
work until further notice.
==================================================================
EOF
    mkdir -p /var/lib/arm-toolchains
    touch "$STATE_FILE"
fi

exit 0
