mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
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 <stangri@melmac.ca>
6 lines
299 B
Bash
6 lines
299 B
Bash
#!/bin/sh
|
|
|
|
ubus -S call luci.advanced-reboot obtain_device_info | grep 'NO_BOARD_NAME_MATCH' && \
|
|
ubus -S call luci.advanced-reboot boot_partition '{ "number": "1" }' | grep 'NO_BOARD_NAME_MATCH' && \
|
|
ubus -S call luci.advanced-reboot boot_partition '{ "number": "2" }' | grep 'NO_BOARD_NAME_MATCH'
|