pmaports/main/devicepkg-utils/source_deviceinfo
2023-09-25 09:20:32 +02:00

6 lines
312 B
Text

# These scripts must be sourced (not executed) to work properly
# shellcheck disable=SC1091
[ -f /usr/share/deviceinfo/deviceinfo ] && . /usr/share/deviceinfo/deviceinfo
[ -f /etc/deviceinfo ] && . /etc/deviceinfo
[ -z "$deviceinfo_arch" ] && { echo "$0: ERROR: deviceinfo file is missing!!"; exit 1; } || true