Skip to content

Commit 1cf6f5d

Browse files
authored
installer: Fix installation in skip-sdcard case (#604)
1 parent b00f17d commit 1cf6f5d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

installer/src/tplink.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,16 @@ async fn tplink_run_install(
104104
println!("Connecting via telnet to {admin_ip}");
105105
let addr = SocketAddr::from_str(&format!("{admin_ip}:23")).unwrap();
106106

107-
if !skip_sdcard {
107+
if skip_sdcard {
108+
sdcard_path = "/data/rayhunter-data".to_owned();
109+
telnet_send_command(
110+
addr,
111+
&format!("mkdir -p {sdcard_path}"),
112+
"exit code 0",
113+
true,
114+
)
115+
.await?
116+
} else {
108117
if sdcard_path.is_empty() {
109118
let try_paths = [
110119
// TP-Link hardware less than v9.0

0 commit comments

Comments
 (0)