• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 寫udev規則

    發表于:2007-07-04來源:作者:點擊數: 標簽:
    本文試圖用最簡單的語言告訴你怎樣在2.6寫自己的udev規則 從而可以自己為設備命名 Udev allows you to customise the naming of device nodes. There are two reasons why you might want to do this: convenience, and persistent naming. Default udev rule
    本文試圖用最簡單的語言告訴你怎樣在2.6寫自己的udev規則 從而可以自己為設備命名

    Udev allows you to customise the naming of device nodes. There are two reasons why you might want to do this: convenience, and persistent naming.

    Default udev rules are stored in /etc/udev/rules.d/50-udev.rules.
    You can creat your own rules in a file at /etc/udev/rules.d/10-local.rules
    Example:

    If I insert my U disk in fedora3 the system will creat a node automatically as /dev/sdb1

    then  #udevinfo -q path -n /dev/lp0
            #/block/sdb/sdb1
    then  #udevinfo -a -p /sys/class/usb/lp0 

    You can find a detailed information about this U disk

    vi your 10-local.rules  addbo

    BUS="usb", SYSFS="0000:00:07.2", NAME="U-disk"

     You can find that your U disk will be detected as "U-disk" 

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>