From 5d1b9876050cc9abf56e7249394b9ce78dc17bbf Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Fri, 5 Mar 2010 17:38:41 +0000 Subject: [PATCH] takes argument --- serial_console/serial.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/serial_console/serial.c b/serial_console/serial.c index 47044f3..601e87f 100644 --- a/serial_console/serial.c +++ b/serial_console/serial.c @@ -134,6 +134,9 @@ int main(int argc, char* argv[]) int door_fd = 0; struct termios tmio_prev; + if (argc > 0) + door_dev_ = argv[1]; + for(;;) { door_fd = open(door_dev_, O_RDWR | O_NONBLOCK); // | O_NOCTTY -- 1.7.10.4