From 7e6e31e1ec023d0c1161b7d15021bb9edd312644 Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Mon, 30 Apr 2012 19:39:15 -0400 Subject: [PATCH] tools: added FifoArgs support to pppob --- tools/pppob.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/pppob.cc b/tools/pppob.cc index 6bb8fe52..f3253d2a 100644 --- a/tools/pppob.cc +++ b/tools/pppob.cc @@ -141,6 +141,18 @@ int main(int argc, char *argv[]) std::string logfile; std::string password; + // check for options via the fifo first, so the command + // line args can override them + FifoClient fifo; + if( fifo.Fetch(4) ) { + const FifoArgs &args = fifo.GetArgs(); + pin = args.m_pin.Value(); + force_serial = args.m_use_serial_mode; + logfile = args.m_log_filename; + password = args.m_password; + data_dump = args.m_verbose; + } + // process command line options for(;;) { int cmd = getopt(argc, argv, "l:p:P:sv"); -- 2.11.4.GIT