devfs-permissions is laughably inadequate
This commit is contained in:
parent
4254f465e1
commit
902a5e994e
|
@ -1,8 +0,0 @@
|
|||
#!/usr/bin/env watchman
|
||||
# Config for devfs-permissions
|
||||
|
||||
cfg_devices=(
|
||||
'/dev/snd;root:audio;770'
|
||||
'/dev/dri;root:video;770'
|
||||
'/dev/fuse;root:root;777'
|
||||
)
|
|
@ -1,17 +0,0 @@
|
|||
#!/usr/bin/env watchman
|
||||
# This is a script to set up the right permissions in /dev in absence of e?(u|s?m)dev.
|
||||
|
||||
service_type='oneshot'
|
||||
|
||||
# Config moved to conf.d
|
||||
|
||||
spawn() {
|
||||
for d in "${cfg_devices[@]}"; do
|
||||
IFS=';' read device owner perms <<< "$d"
|
||||
|
||||
[[ -e "$device" ]] && {
|
||||
chown -R "$owner" "$device"
|
||||
chmod -R "$perms" "$device"
|
||||
}
|
||||
done
|
||||
}
|
Loading…
Reference in New Issue
Block a user