[no ci] Package: add wifibroadcast-ng cli shortcut (#1794)

pull/1795/head
viktorxda 2025-04-10 17:44:22 +02:00 committed by GitHub
parent d68e6e2481
commit 7b8817526e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,6 @@
#!/bin/sh
wfb_key=/etc/drone.key
wfb_cfg=/etc/wfb.yaml
wfb_dev=wlan0
echo_log() {
@ -17,7 +18,7 @@ wfb_yaml() {
}
load_config() {
wfb_yaml /etc/wfb.yaml
wfb_yaml "$wfb_cfg"
[ ! -e "$wfb_key" ] && wfb_key=/rom/etc/drone.key
}
@ -142,13 +143,18 @@ case "$1" in
;;
reset)
cp -f /rom/etc/wfb.yaml /etc/wfb.yaml
cp -f /rom/"$wfb_cfg" "$wfb_cfg"
cp -f /rom/etc/majestic.yaml /etc/majestic.yaml
video_settings
;;
cli)
shift
yaml-cli -i "$wfb_cfg" "$@"
;;
*)
echo "Usage: $0 {start|stop|reset}"
echo "Usage: $0 {start|stop|reset|cli}"
exit 1
;;
esac