
fn ethdir_path() -> std::path::PathBuf {
    let options: crate::Opt = argh::from_env();
    path::Path::new(&options.dev_path).join("class/ethernet")
}

async fn device_found(filename: &std::path::PathBuf) -> Result<Option<OIRInfo>, anyhow::Error> {
    let file_path = ethdir_path().join(filename);
    let device = fs::File::open(&file_path)