From f2edc3057525bed8398672d4018829ad6ed68c56 Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 10 Apr 2026 14:49:36 -0600 Subject: [PATCH] scripts initial --- install.sh | 2 ++ scripts/start-hamclock.sh | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100755 scripts/start-hamclock.sh diff --git a/install.sh b/install.sh index da8640e..9e225ef 100755 --- a/install.sh +++ b/install.sh @@ -67,6 +67,8 @@ git clone https://gitea.young.computer/david/HamPackServer.git "$HOME/.local/sha mkdir -p "$HOME/.local/bin" cp "$HOME/.local/share/HamPackServer/hampackserverrefresh" "$HOME/.local/bin/hampackserverrefresh" cp "$HOME/.local/share/HamPackServer/hampackserverupdate" "$HOME/.local/bin/hampackserverupdate" +cp "$HOME/.local/share/HamPackServer/scripts/start-hamclock.sh" "$HOME/.local/bin/start-hamclock.sh" +chmod +x "$HOME/.local/bin/start-hamclock.sh" cd ~/.local/share/HamPackServer diff --git a/scripts/start-hamclock.sh b/scripts/start-hamclock.sh new file mode 100755 index 0000000..f48c561 --- /dev/null +++ b/scripts/start-hamclock.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# Start HamClock + +HAMCLOCK="$HOME/.local/bin/hamclock" + +if [ ! -x "$HAMCLOCK" ]; then + echo "Error: hamclock not found or not executable at $HAMCLOCK" >&2 + exit 1 +fi + +"$HAMCLOCK" "$@" &