Update to Ruby 10.6, update sysupgrade procedure

Fix sysupgrade bug, updated Ruby code.
The /etc/rc.local.stop (to stop Ruby) is created at runtime by Ruby, if missing. (to cover OTA updates of existing installs too).
pull/1750/head
Petru Soroaga 2025-03-11 14:10:47 +02:00
parent 7d6bf8ff6d
commit 357d47fa61
4 changed files with 5 additions and 6 deletions

View File

@ -98,9 +98,6 @@ download_firmware() {
free_resources() {
echo_c 37 "\nStop services, sync files, free up memory"
if [ -f /etc/init.d/S73ruby ]; then
/etc/init.d/S73ruby stop
fi
killall -q -3 majestic
sleep 1
/etc/init.d/S99rc.local stop

View File

@ -1,6 +1,8 @@
echo -n "Stopping Ruby..."
pidof ruby_start | xargs kill -9 2>/dev/null
pidof ruby_rx_commands | xargs kill -9 2>/dev/null
pidof ruby_tx_telemetry | xargs kill -9 2>/dev/null
pidof ruby_rt_vehicle | xargs kill -9 2>/dev/null
pidof ruby_start | xargs kill -9 2>/dev/null
pidof ruby_logger | xargs kill -9 2>/dev/null
pidof majestic | xargs kill -9 2>/dev/null
echo "OK"

View File

@ -1 +1 @@
10.5
10.6

View File

@ -6,7 +6,7 @@
RUBYFPV_SITE_METHOD = git
RUBYFPV_SITE = https://github.com/PetruSoroaga/RubyFPV
RUBYFPV_VERSION = 0b856c2d26fccbdca8b3cea6f08e92824d423593
RUBYFPV_VERSION = 00e7101c58f0697a63ba4e572a7b02de0605dad7
RUBYFPV_DEPENDENCIES += libpcap iw