brmd: Allow device filename override on commandline

This commit is contained in:
Petr Baudis 2011-05-02 00:43:33 +02:00
parent 00e2684e63
commit 718c94886d

View file

@ -10,7 +10,7 @@ use HTTP::Status qw/RC_OK/;
use CGI;
our $channel = "#brmlab";
our $device = "/dev/ttyUSB0";
our $device = $ARGV[0]; $device ||= "/dev/ttyUSB0";
our ($status, $record, $topic) = (0, 0, 'BRMLAB OPEN');
my $serial;