mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-28 08:29:58 -07:00
Fix issue template and improve one error message
The current error message is not very useful for remote-debugging. Add enough context to allow technically adept users to figure out a way. See #544
This commit is contained in:
committed by
Cooper Quintin
parent
ad4e971e77
commit
0fc51d79f4
4
.github/ISSUE_TEMPLATE/installer-bug.yaml
vendored
4
.github/ISSUE_TEMPLATE/installer-bug.yaml
vendored
@@ -15,8 +15,8 @@ body:
|
||||
What device are you trying to install Rayhunter on?
|
||||
options:
|
||||
- Orbic RC400L
|
||||
- Tplink HW7350
|
||||
- Tplink HW7310
|
||||
- Tplink M7350
|
||||
- Tplink M7310
|
||||
- Tmobile TMOHS1
|
||||
- Wingtech CT2MHS0
|
||||
- Pinephone
|
||||
|
||||
@@ -4,10 +4,11 @@ Windows support in Rayhunter's installer is a work-in-progress. Depending on the
|
||||
|
||||
## TP-Link
|
||||
|
||||
1. Connect the device via WiFi or USB Tethering -- you should be able to view the TP-Link admin page on <http://192.168.0.1>.
|
||||
2. Download the latest release (must be at least 0.3.0) for windows-x86_64, and unpack the zipfile.
|
||||
3. Open PowerShell or CMD in that extracted folder, the installer: `./installer tplink`
|
||||
4. Follow the instructions on the screen, if there are any.
|
||||
1. Insert a FAT-formatted SD card into the device. We don't need much storage, a few 100 MB will suffice.
|
||||
2. Connect the device via WiFi or USB Tethering -- you should be able to view the TP-Link admin page on <http://192.168.0.1>.
|
||||
3. Download the latest release (must be at least 0.3.0) for windows-x86_64, and unpack the zipfile.
|
||||
4. Open PowerShell or CMD in that extracted folder, the installer: `./installer tplink`
|
||||
5. Follow the instructions on the screen, if there are any.
|
||||
|
||||
## Orbic
|
||||
|
||||
|
||||
@@ -106,21 +106,29 @@ async fn tplink_run_install(
|
||||
|
||||
if !skip_sdcard {
|
||||
if sdcard_path.is_empty() {
|
||||
if telnet_send_command(addr, "ls /media/card", "exit code 0", true)
|
||||
.await
|
||||
.is_ok()
|
||||
{
|
||||
let try_paths = [
|
||||
// TP-Link hardware less than v9.0
|
||||
sdcard_path = "/media/card".to_owned();
|
||||
} else if telnet_send_command(addr, "ls /media/sdcard", "exit code 0", true)
|
||||
.await
|
||||
.is_ok()
|
||||
{
|
||||
"/media/card",
|
||||
// TP-Link hardware v9.0
|
||||
sdcard_path = "/media/sdcard".to_owned();
|
||||
} else {
|
||||
"/media/sdcard",
|
||||
];
|
||||
for path in try_paths {
|
||||
if telnet_send_command(addr, &format!("ls {path}"), "exit code 0", true)
|
||||
.await
|
||||
.is_ok()
|
||||
{
|
||||
sdcard_path = path.to_owned();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if sdcard_path.is_empty() {
|
||||
anyhow::bail!(
|
||||
"unable to determine sdcard path. this is a bug. please file an issue with your hardware version."
|
||||
"Unable to determine sdcard path. Rayhunter needs a FAT-formatted SD card to function.\n\n\
|
||||
In case you already did, this is a bug. Please file an issue with your hardware version.\n\n\
|
||||
The installer has tried to find an empty folder to mount to on these paths: {try_paths:?}\n\
|
||||
...but none of them exist.\n\n\
|
||||
At this point, you may 'telnet {admin_ip}' and poke around in the device to figure out what went wrong yourself."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user