mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 21:04:33 +04:00
lpac is a eUICC eSIM LPA manager written in C. It allows to manage eSIM profiles on eUICC SIM cards or modules using multiple backends. Signed-off-by: David Bauer <mail@david-bauer.net>
28 lines
621 B
Bash
28 lines
621 B
Bash
#!/bin/sh
|
|
|
|
. /lib/config/uci.sh
|
|
|
|
APDU_BACKEND="$(uci_get lpac global apdu_backend at)"
|
|
APDU_DEBUG="$(uci_get lpac global apdu_debug 0)"
|
|
|
|
HTTP_BACKEND="$(uci_get lpac global http_backend curl)"
|
|
HTTP_DEBUG="$(uci_get lpac global http_debug 0)"
|
|
|
|
AT_DEVICE="$(uci_get lpac at device /dev/ttyUSB2)"
|
|
AT_DEBUG="$(uci_get lpac at debug 0)"
|
|
|
|
export LPAC_HTTP="$HTTP_BACKEND"
|
|
if [ "$HTTP_DEBUG" -eq 1 ]; then
|
|
export LIBEUICC_DEBUG_HTTP="1"
|
|
fi
|
|
|
|
export LPAC_APDU="$APDU_BACKEND"
|
|
if [ "$APDU_DEBUG" -eq 1 ]; then
|
|
export LIBEUICC_DEBUG_APDU="1"
|
|
fi
|
|
|
|
export AT_DEVICE="$AT_DEVICE"
|
|
export AT_DEBUG="$AT_DEBUG"
|
|
|
|
/usr/lib/lpac "$@"
|