Linux2014. 12. 18. 15:20

USB 장치라던가 각종 장치들이 연결되었을때

자동으로 mount 하는 녀석이 바로.. udev 인거 같은데..

/etc/udev/rules.d 에 어떤방법으로 연결을 할 지에 대해서 정의되어 있다고 한다.


ubuntu 12.04던 10.04던..

/etc/udev는 딱히 설정된게 없다.


 $ tree /etc/udev/rules.d

/etc/udev/rules.d

├── 70-persistent-cd.rules

├── 70-persistent-net.rules

└── README


 $ cat 70-persistent-cd.rules

# This file maintains persistent names for CD/DVD reader and writer devices.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-cd-aliases-generator.rules
# file; however you are also free to add your own entries provided you
# add the ENV{GENERATED}=1 flag to your own rules as well.


$ cat 70-persistent-net.rules

# This file was automatically generated by the /lib/udev/write_net_rules

# program, run by the persistent-net-generator.rules rules file.

# program, run by the persistent-net-generator.rules rules file.

#

# You can modify it, as long as you keep each rule on a single

# line, and change only the value of the NAME= key.

# PCI device 0x10de:/sys/devices/pci0000:00/0000:00:0a.0 (forcedeth)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="70:71:bc:3e:97:0a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


[링크 : https://kldp.org/node/120415]

[링크 : http://www.reactivated.net/writing_udev_rules.html]

[링크 : https://wiki.archlinux.org/index.php/udev]

'Linux' 카테고리의 다른 글

linux X-window 축 뒤집기  (0) 2014.12.24
dd / progress  (0) 2014.12.22
플래시용 파일 시스템과 EXT4  (0) 2014.12.14
TTY / PTS 약자  (0) 2014.12.14
expect - shell script  (0) 2014.12.10
Posted by 구차니