[no ci] Package: update wifibroadcast-ng (#1791)

pull/1793/head
viktorxda 2025-04-09 17:36:41 +02:00 committed by GitHub
parent 3f8731d10a
commit c80e5b8648
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -5,6 +5,7 @@
MODULE=/lib/modules/4.9.84/sigmastar
SENSOR=$(fw_printenv -n sensor)
BUILD=$(grep BUILD_OPTION /etc/os-release | cut -d= -f2)
detect_sensor() {
insmod $MODULE/sensor_config.ko
@ -12,8 +13,11 @@ detect_sensor() {
echo srcfg 0 1 0 0 0 0 > /dev/srcfg
rmmod sensor_config
fi
SENSOR=$(ipcinfo -s)
fw_setenv sensor "$SENSOR"
if [ "$BUILD" != "fpv" ]
fw_setenv sensor "$SENSOR"
fi
}
set_sensor() {

View File

@ -141,18 +141,14 @@ case "$1" in
$1
;;
resetv)
reset)
cp -f /rom/etc/wfb.yaml /etc/wfb.yaml
cp -f /rom/etc/majestic.yaml /etc/majestic.yaml
video_settings
;;
resetw)
cp -f /rom/etc/wfb.yaml /etc/wfb.yaml
start
;;
*)
echo "Usage: $0 {start|stop|resetv|resetw}"
echo "Usage: $0 {start|stop|reset}"
exit 1
;;
esac