scripts initial
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
11
scripts/start-hamclock.sh
Executable file
11
scripts/start-hamclock.sh
Executable file
@@ -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" "$@" &
|
||||
Reference in New Issue
Block a user