diff --git a/general/package/wifibroadcast-ng/files/wifibroadcast b/general/package/wifibroadcast-ng/files/wifibroadcast index d9212cdc..5d59052b 100755 --- a/general/package/wifibroadcast-ng/files/wifibroadcast +++ b/general/package/wifibroadcast-ng/files/wifibroadcast @@ -5,7 +5,8 @@ wfb_dev=wlan0 wfb_yaml() { if [ -e "$1" ]; then while IFS=: read -r key value; do - value=$(eval echo $value) + key=$(eval echo "$key") + value=$(eval echo "$value") export "$key=$value" done < "$1" fi @@ -129,6 +130,7 @@ start() { killall -1 majestic fi + stop start_broadcast start_tunnel start_telemetry @@ -136,7 +138,10 @@ start() { stop() { for process in wfb_rx wfb_tx wfb_tun msposd mavfwd; do - killall -q "$process" + if [ -n "$(pidof $process)" ]; then + echo "- Stopping $process" + killall -q "$process" + fi done } @@ -145,11 +150,6 @@ case "$1" in $1 ;; - restart|reload) - stop - start - ;; - reset) cp -f /rom/etc/majestic.yaml /etc/majestic.yaml cp -f /rom/etc/wfb.yaml /etc/wfb.yaml @@ -157,7 +157,7 @@ case "$1" in ;; *) - echo "Usage: $0 {start|stop|restart|reload|reset}" + echo "Usage: $0 {start|stop|reset}" exit 1 ;; esac diff --git a/general/package/wifibroadcast-ng/www/index.html b/general/package/wifibroadcast-ng/www/index.html index c2a7a998..9d66f889 100644 --- a/general/package/wifibroadcast-ng/www/index.html +++ b/general/package/wifibroadcast-ng/www/index.html @@ -1,309 +1,309 @@ - - -
- - -