OSWikiHK: 請協力 GPLv3 的中文翻譯工作。

Filesystem:/etc/udev/rules.d/75-persistent-net-generator.rules

OSWikiHK,自由中文開源知識庫

< Filesystem: | etc | udev | rules.d

本檔案會產生 /etc/udev/rules.d/70-persistent-net.rules 來固定網絡介面的名稱:

ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*|ath*|wlan*|ra*|sta*" \ 
        NAME!="?*", DRIVERS=="?*", GOTO="persistent_net_generator_do" 
 
GOTO="persistent_net_generator_end" 
LABEL="persistent_net_generator_do" 
 
# build device description string to add a comment the generated rule 
SUBSYSTEMS=="pci", ENV{COMMENT}="PCI device $attr{vendor}:$attr{device} ($attr{driver})" 
SUBSYSTEMS=="usb", ENV{COMMENT}="USB device 0x$attr{idVendor}:0x$attr{idProduct} ($attr{driver})" 
SUBSYSTEMS=="ieee1394", ENV{COMMENT}="Firewire device $attr{host_id})" 
SUBSYSTEMS=="xen", ENV{COMMENT}="Xen virtual device" 
ENV{COMMENT}=="", ENV{COMMENT}="$env{SUBSYSTEM} device ($attr{driver})" 
 
IMPORT{program}="write_net_rules $attr{address}" 
ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}" 
 
LABEL="persistent_net_generator_end"

相關頁面

Personal tools
廣告橫額