Add files via upload

pull/1724/head
snokvist 2025-02-23 11:21:04 +01:00 committed by GitHub
parent 41caa7017b
commit 8def6f5713
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 133 additions and 1 deletions

View File

@ -3,11 +3,12 @@
case "$1" in
start)
echo "Generating or updating /etc/vtx_info.yaml..."
generate_vtx_info
generate_vtx_info.sh
;;
stop)
echo "Generating or updating /etc/vtx_info.yaml only done when starting..."
;;
*)

View File

@ -0,0 +1,3 @@
#!/bin/sh
echo "Nothing happening here..."

View File

@ -0,0 +1,23 @@
#!/bin/sh
case "$1" in
start)
echo "Starting wifibroadcast..."
wifibroadcast start
;;
stop)
echo "Stopping wifibroadcast..."
wifibroadcast stop
;;
bind)
echo "Binding..."
wifibroadcast bind
;;
*)
echo "Usage: $0 {start|stop|bind}"
exit 1
;;
esac

View File

@ -0,0 +1,18 @@
#!/bin/sh
case "$1" in
start)
echo "Starting provisioner service..."
provision_listen.sh &>/dev/null &
;;
stop)
echo "Stopping provisioner service..."
killall -q provision_listen.sh
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac

View File

@ -0,0 +1,18 @@
#!/bin/sh
case "$1" in
start)
echo "Starting provisioner bind service..."
if [ "$(yaml-cli -i /etc/wfb.yaml -g .wireless.allow_startup_bind)" = "true" ]; then
echo "allow_startup_bind is true; starting provision_bind.sh in the background..."
provision_bind.sh &>/dev/null &
else
echo "allow_startup_bind is not true; skipping provision_bind.sh"
fi
;;
*)
echo "Usage: $0 {start}"
exit 1
;;
esac

View File

@ -0,0 +1,51 @@
#!/bin/sh
case "$1" in
start)
# Read alink mode from YAML
alink="$(yaml-cli -i /etc/wfb.yaml -g .wireless.alink)"
# If empty or unknown, treat as disabled
case "$alink" in
simple-alink)
echo "alink mode: simple-alink"
# Put the commands you need for starting 'simple-alink' here
socket_srv --udp 5557 simple_alink.sh &>/dev/null &
;;
greg-alink)
echo "alink mode: greg-alink"
# Put the commands you need for starting 'greg-alink' here
;;
""|disabled|*)
# If empty, explicitly "disabled", or unrecognized value
echo "alink mode is 'disabled' (or unrecognized), skipping alink start."
;;
esac
;;
stop)
# Read alink mode again
alink="$(yaml-cli -i /etc/wfb.yaml -g .wireless.alink)"
# Stop whichever mode was started
case "$alink" in
simple-alink)
echo "Stopping simple-alink..."
killall -q simple_alink.sh
;;
greg-alink)
echo "Stopping greg-alink..."
;;
""|disabled|*)
echo "alink mode is 'disabled' (or unrecognized), nothing to stop."
;;
esac
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac

View File

@ -0,0 +1,18 @@
#!/bin/sh
case "$1" in
start)
echo "Starting temperature check..."
temperature_check.sh &>/dev/null &
;;
stop)
echo "Stopping temperature check..."
killall -q temperature_check.sh
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac