luci-app-advanced-reboot: bugfix: actual partition switch
authorStan Grishin <redacted>
Wed, 21 Jan 2026 03:31:28 +0000 (03:31 +0000)
committerStan Grishin <redacted>
Wed, 21 Jan 2026 03:31:36 +0000 (03:31 +0000)
commit6b271164d8d38c87ca2b54264e57217df8f1f95f
tree57f63c563837f9f2ba1b70f623ea5575fc907c35
parentaca7cc175664c6b4aa12f0d2a328d9fb9e0e00c7
luci-app-advanced-reboot: bugfix: actual partition switch

At some point after r7, when I no longer had the dual boot device readily
available for testing, a regression was introduced that the RPCD script
would not actually perform the partition switch.
Thanks to @bd0426 for report and @Jackie264 for fixing the issue.

advanced-reboot.js
* simplify partition number validation in handleAlternativeReboot
* reformat text copy

RPCD script
* obtain OpenWrt version from "$OPENWRT_RELEASE" not "$PRETTY_NAME" for
  the snapshot compatibility
* refactor parameter processing for boot_partition function
* add logging/better output on error in boot_partition

test.sh
* introduce a test file for heartbeat check of the RPCD script

Signed-off-by: Stan Grishin <redacted>
applications/luci-app-advanced-reboot/Makefile
applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced-reboot.js
applications/luci-app-advanced-reboot/root/usr/share/rpcd/ucode/luci.advanced-reboot
applications/luci-app-advanced-reboot/test.sh [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT