A small helpdesk system: an office Pixel running a patched GrapheneOS Dialer answers technician calls, records both call legs as separate channels, and a Ruby backend transcribes them through Whisper and files an AI summary against the caller. Squashed to a single commit for sharing. No credentials are included; secrets live outside the repo in /etc/helpdesk/env on the server or a gitignored .claude/env.local locally. See .claude/env.local.example for the shape. Start at README.md, then docs/architecture.md.
9 lines
420 B
Bash
Executable file
9 lines
420 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
TREE="${SEPOLICY_TREE:-/build/grapheneos/system/sepolicy}"
|
|
for p in patches/*.patch; do
|
|
if git -C "$TREE" apply --reverse --check "$(pwd)/$p" 2>/dev/null; then echo "already applied: $p"
|
|
elif git -C "$TREE" apply --check "$(pwd)/$p" 2>/dev/null; then git -C "$TREE" apply "$(pwd)/$p"; echo "applied: $p"
|
|
else echo "WARN: cannot apply $p cleanly"; fi
|
|
done
|