18 lines
350 B
Plaintext
Executable File
18 lines
350 B
Plaintext
Executable File
#!/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
|
|
}
|