Add flasher credential provisioning, LUKS2 FDE, LED fixes, and docs
This commit is contained in:
1 parent
2706b9a901
commit
b7dca4f15f
49 files changed
+1524
-183
No files matched your search
+17
-3
@@ -19,11 +19,25 @@ if ! "$PYTHON_BIN" -c 'import usb.core, serial, Crypto, colorama' >/dev/null 2>&
|
||||
export PYTHONPATH
|
||||
fi
|
||||
|
||||
OFFLINE_OP=0
|
||||
HAS_EXTRACT=0
|
||||
HAS_SYSIMG=0
|
||||
for arg in "$@"; do
|
||||
if [ "$arg" = "-h" ] || [ "$arg" = "--help" ]; then
|
||||
exec "$PYTHON_BIN" "$FLASHER_PY" "$@"
|
||||
fi
|
||||
case "$arg" in
|
||||
-h|--help|--customize-rootfs|--customize-rootfs=*)
|
||||
OFFLINE_OP=1
|
||||
;;
|
||||
--extract-firmware)
|
||||
HAS_EXTRACT=1
|
||||
;;
|
||||
--system-img|--system-img=*)
|
||||
HAS_SYSIMG=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if [ "$OFFLINE_OP" -eq 1 ] || { [ "$HAS_EXTRACT" -eq 1 ] && [ "$HAS_SYSIMG" -eq 1 ]; }; then
|
||||
exec "$PYTHON_BIN" "$FLASHER_PY" "$@"
|
||||
fi
|
||||
|
||||
if [ "$(id -u)" -ne 0 ]; then
|
||||
if command -v sudo >/dev/null 2>&1; then
|
||||
|
||||
Reference in new issue
Block a user