aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ncpd/main.cc')
-rw-r--r--ncpd/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/ncpd/main.cc b/ncpd/main.cc
index f1f7f14..4771744 100644
--- a/ncpd/main.cc
+++ b/ncpd/main.cc
@@ -288,7 +288,10 @@ main(int argc, char **argv)
autoexit = true;
break;
case 'b':
- baudRate = atoi(optarg);
+ if (!strcmp(optarg, "auto"))
+ baudRate = -1;
+ else
+ baudRate = atoi(optarg);
break;
case 's':
serialDevice = optarg;