Por que as regras em udev /… / rules.d têm números na frente delas?

2

É apenas por conveniência ou há alguma razão para isso?
Exemplo:

cat /etc/udev/conf.d/rules.d/98-kexec.rules
    
por D.Zou 22.05.2015 / 05:39

1 resposta

1

Você pode ler o motivo diretamente do manual.

man udev

RULES FILES

The udev rules are read from the files located in the system rules directory /usr/lib/udev/rules.d, the volatile runtime directory /run/udev/rules.d and the local administration directory /etc/udev/rules.d. All rules files are collectively sorted and processed in lexical order, regardless of the directories in which they live. However, files with identical file names replace each other. Files in /etc have the highest priority, files in /run take precedence over files with the same name in /lib. This can be used to override a system-supplied rules file with a local file if needed; a symlink in /etc with the same name as a rules file in /lib, pointing to /dev/null, disables the rules file entirely.

    
por 26.05.2015 / 22:07

Tags