Date: Mon, 28 Nov 2005 22:04:05 -0800 From: "Darren Pilgrim" <darren.pilgrim@bitfreak.org> To: "'Kevin Oberman'" <oberman@es.net> Cc: stable@freebsd.org Subject: RE: Unable to set device characteristics with devd Message-ID: <000801c5f4aa$b7d340a0$642a15ac@smiley> In-Reply-To: <20051129054922.48ACA5D0A@ptavv.es.net>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Kevin Oberman > > I've been trying to use devd for a number of things, but have > not gotten > far. > > One issue is when I attach an ATAPI disk: > attach 100 { > device-name "acd0"; > action "/bin/chmod 666 /dev/$device-name"; > } > > I have similar statements for my second hard drive (ad2s2). > > By using the -D option I see the device attach, but the chmod returns > an error indicating that /dev/acd0 does not exist. I get > similar results for other devices. > > Is there a delay between the attach event and the creation of the /dev > entry? Am I missing something here? Maybe I should use devfs for this. The normal tools (chmod, chown, etc.) don't work on devfs. You need to create devfs rules to change permissions, ownership, etc. on device nodes. See devfs.rules(5) and devfs.conf(5).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801c5f4aa$b7d340a0$642a15ac>