Is there a canonical way of preserving devfs rules (device permissions actually) across reboots? It seems devd.conf works only for "static" devices, not hotplugged, while devfs rules works for those, but they vanish on reboot.
Ivan Voras wrote:> Is there a canonical way of preserving devfs rules (device permissions > actually) across reboots? > > It seems devd.conf works only for "static" devices, not hotplugged,^^^^^^^^^ this should have been "devfs.conf"> while devfs(8) rules work for those, but they vanish on reboot.
On Wednesday, 8. December 2004 17:55, Ivan Voras wrote:> Is there a canonical way of preserving devfs rules (device permissions > actually) across reboots? > > It seems devd.conf works only for "static" devices, not hotplugged, > while devfs rules works for those, but they vanish on reboot.You can put rules into /etc/devfs.rules, analog to devfs.conf (there's an /etc/defaults/devfs.rules, too, although it isn't much of a demonstration). I think somewhat more userfriendly documentation and examples for the whole devfs stuff is sorely missed not just by me... -- ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20041208/9a3d0b66/attachment.bin
Ivan Voras wrote: [ Charset ISO-8859-2 unsupported, converting... ]> Is there a canonical way of preserving devfs rules (device permissions > actually) across reboots?>cat /etc/devfs.rules[devfsrules_local=15] add path 'bpf*' mode 0660 add path 'ugen*' mode 0664 add path 'cd*' mode 0664 For example. For some hints, 'man devfs' and /etc/defaults/devfs.rules. -- Frank Mayhar frank@exit.com http://www.exit.com/ Exit Consulting http://www.gpsclock.com/ http://www.exit.com/blog/frank/
In message: <41B731F1.5030108@fer.hr> Ivan Voras <ivoras@fer.hr> writes: : It seems devd.conf works only for "static" devices, not hotplugged, : while devfs rules works for those, but they vanish on reboot. That's not true. devd devinitely deals with hotplugged devices. I use it all the time. Warner