Add udev rules
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
89b38bdb70
commit
2a6d463ddf
6 changed files with 26 additions and 5 deletions
|
@ -95,4 +95,11 @@ function add_to_group() {
|
|||
function enable_service() {
|
||||
print_log "Enabling service ${YELLOW}${1}${RESET}"
|
||||
sudo systemctl enable "${1}"
|
||||
}
|
||||
|
||||
# Function to copy a udev rule to /etc/udev/rules.d/
|
||||
# USAGE: copy_udev_rules FILE
|
||||
function copy_udev_rule() {
|
||||
print_log "Copying ${YELLOW}$(basename "${1}")${RESET} to ${YELLOW}/etc/udev/rules.d/${RESET}"
|
||||
sudo cp "${1}" "/etc/udev/rules.d/"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue