mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-23 00:04:47 -07:00
installer: Fix installation in skip-sdcard case (#604)
This commit is contained in:
@@ -104,7 +104,16 @@ async fn tplink_run_install(
|
|||||||
println!("Connecting via telnet to {admin_ip}");
|
println!("Connecting via telnet to {admin_ip}");
|
||||||
let addr = SocketAddr::from_str(&format!("{admin_ip}:23")).unwrap();
|
let addr = SocketAddr::from_str(&format!("{admin_ip}:23")).unwrap();
|
||||||
|
|
||||||
if !skip_sdcard {
|
if skip_sdcard {
|
||||||
|
sdcard_path = "/data/rayhunter-data".to_owned();
|
||||||
|
telnet_send_command(
|
||||||
|
addr,
|
||||||
|
&format!("mkdir -p {sdcard_path}"),
|
||||||
|
"exit code 0",
|
||||||
|
true,
|
||||||
|
)
|
||||||
|
.await?
|
||||||
|
} else {
|
||||||
if sdcard_path.is_empty() {
|
if sdcard_path.is_empty() {
|
||||||
let try_paths = [
|
let try_paths = [
|
||||||
// TP-Link hardware less than v9.0
|
// TP-Link hardware less than v9.0
|
||||||
|
|||||||
Reference in New Issue
Block a user