From: Bernhard Tittelbach Date: Fri, 5 Mar 2010 17:38:41 +0000 (+0000) Subject: takes argument X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=5d1b9876050cc9abf56e7249394b9ce78dc17bbf;p=svn42.git takes argument --- 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