Various fixes for TP-Link

* explicitly mount the SD card to improve reliability
* do not crash when the SD card is already mounted
* address some review feedback
This commit is contained in:
Markus Unterwaditzer
2025-05-07 12:50:30 +02:00
committed by Cooper Quintin
parent 4a7452806d
commit c285e2ca08
4 changed files with 75 additions and 25 deletions

View File

@@ -116,14 +116,14 @@ async fn setup_rayhunter(
serial_interface,
&mut adb_device,
"/data/rayhunter/config.toml",
CONFIG_TOML,
CONFIG_TOML.as_bytes(),
)
.await?;
install_file(
serial_interface,
&mut adb_device,
"/etc/init.d/rayhunter_daemon",
RAYHUNTER_DAEMON_INIT,
RAYHUNTER_DAEMON_INIT.as_bytes(),
)
.await?;
install_file(