diff options
author | Dan Williams <dcbw@redhat.com> | 2008-12-16 22:09:39 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2008-12-16 22:09:39 -0500 |
commit | 6fb48381592fe1d6da735605af2b7dad526cb5bc (patch) | |
tree | d5268697ba995f4409f274e49d4fb39306c77efa | |
parent | 1fd4457a8881a27223fe6b8833dbf66cd83f0ca5 (diff) |
Indicate port has been probed
So that HAL fdi files can figure out whether to fall back to
manual tagging if a prober hasn't been run on the port.
-rw-r--r-- | probe-modem/probe-modem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/probe-modem/probe-modem.c b/probe-modem/probe-modem.c index 1aa868b..d237760 100644 --- a/probe-modem/probe-modem.c +++ b/probe-modem/probe-modem.c @@ -426,8 +426,9 @@ main(int argc, char *argv[]) if (caps < 0) { g_printerr ("%s: couldn't get modem capabilities\n", device); + printf ("ID_MODEM_PROBED=1\n"); if (logfile) fclose (logfile); - return 6; + return 0; } if (export) { @@ -441,6 +442,7 @@ main(int argc, char *argv[]) printf ("ID_MODEM_IS856=1\n"); if (caps & MODEM_CAP_IS856_A) printf ("ID_MODEM_IS856_A=1\n"); + printf ("ID_MODEM_PROBED=1\n"); } verbose ("%s: caps (0x%X)%s%s%s%s\n", device, caps, |