Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2009 14:13:10 +0100
From:      Michael Sperber <sperber@deinprogramm.de>
To:        freebsd-stable@freebsd.org
Subject:   devd question
Message-ID:  <y9lljrq1z89.fsf@deinprogramm.de>

next in thread | raw e-mail | index | archive | help

I'm trying to make devd run an stty command whenever a USB serial device
is attached.  Unfortunately, $device-name is ucom[0-9] and the device
names are /dev/cuaU[0-9] - how do I get the correct name in the device
action?  I haven't found a way to extract the number by itself, so I'm
stuck with specifying a separate rule for each number, like so:

attach 100 {
        device-name "ucom0";
        action "stty -f /dev/cuaU0.init raw";
};

Help would be much appreciated!

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y9lljrq1z89.fsf>