Skip to content
Snippets Groups Projects
Commit 6e4a2db3 authored by Nathaniel Mattsson's avatar Nathaniel Mattsson
Browse files

Workstation: Set group of /dev/drm to lysator to enable hardware accelerated graphics

parent de7d31f5
No related branches found
No related tags found
1 merge request!3Workstation: added devfs rules for /dev/drm
#Set group of /dev/drm files to lysator
#
[drm_setgroup=6]
add path 'drm/*' mode 0660 group lysator
#
class freebsd::workstation::inteldrm {
file { '/etc/devfs_lysator.rules'
ensure => file,
source => 'puppet:///modules/freebsd/devfs_lysator.rules',
owner => 'root',
group => 'wheel',
mode => '0644'
}
file_line { 'the rules are applied':
path => '/etc/rc.conf',
line => 'devfs_system_ruleset="drm_setgroup"'
}
file_line { 'the rules are added to the rulesets':
path => '/etc/rc.conf',
line => 'devfs_rulesets="/etc/devfs.rules /etc/defaults/devfs.rules /etc/devfs_lysator.rules"'
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment