summaryrefslogtreecommitdiff
path: root/stacks/daemon/max25d
diff options
context:
space:
mode:
Diffstat (limited to 'stacks/daemon/max25d')
-rwxr-xr-xstacks/daemon/max25d21
1 files changed, 21 insertions, 0 deletions
diff --git a/stacks/daemon/max25d b/stacks/daemon/max25d
new file mode 100755
index 0000000..d6c075b
--- /dev/null
+++ b/stacks/daemon/max25d
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+# max25d launcher — ps(1) shows this path, not "python3 …/max25d".
+set -euo pipefail
+ROOT="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
+case "${1:-}" in
+ session)
+ shift
+ for candidate in \
+ "${ROOT}/../../scripts/max25d-session.sh" \
+ "${ROOT}/../scripts/max25d-session.sh" \
+ "$(command -v max25d-session 2>/dev/null || true)"
+ do
+ if [[ -n "${candidate}" && -x "${candidate}" ]]; then
+ exec "${candidate}" "$@"
+ fi
+ done
+ echo "max25d: max25d-session helper not found" >&2
+ exit 1
+ ;;
+esac
+exec -a "$0" python3 "${ROOT}/max25d.py" "$@"
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com