Changeset 32711


Ignore:
Timestamp:
2012-07-14T21:59:44+02:00 (6 years ago)
Author:
acinonyx
Message:

[package] base-files: Modernize hotplug2 rules (#11368)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/hotplug2-common.rules

    r28768 r32711  
    22# uncomment me to log hotplug events 
    33# DEVPATH is set { 
    4 #       exec logger -s -t hotplug -p daemon.info "name=%DEVICENAME%, path=%DEVPATH%" 
     4#       exec logger -s -t hotplug -p daemon.info "name=%DEVNAME%, path=%DEVPATH%" 
    55# } 
    66 
    77$include /etc/hotplug2-platform.rules 
    88 
    9 DEVICENAME ~~ (^null$|^full$|^ptmx$|^zero$|^gpio|^hvc) { 
    10         makedev /dev/%DEVICENAME% 0666 
     9DEVNAME ~~ (^null$|^full$|^ptmx$|^zero$|^gpio|^hvc) { 
     10        makedev /dev/%DEVNAME% 0666 
    1111        next-event 
    1212} 
    1313 
    14 DEVICENAME ~~ (^tun|^tap[0-9]$) { 
    15         makedev /dev/net/%DEVICENAME% 0644 
    16 } 
    17  
    18 DEVICENAME ~~ (^controlC[0-9]$|^pcmC[0-9]D[0-9]|^timer$) { 
    19         makedev /dev/snd/%DEVICENAME% 0644 
    20         next-event 
    21 } 
    22  
    23 DEVICENAME ~~ ^lp[0-9]$ { 
    24         makedev /dev/%DEVICENAME% 0644 
    25         next-event 
    26 } 
    27  
    28 DEVPATH is set, SUBSYSTEM == input { 
    29         makedev /dev/input/%DEVICENAME% 0644 
    30 } 
    31  
    32 DEVICENAME == device-mapper { 
    33         makedev /dev/mapper/control 0600 
     14DEVNAME == mapper/control { 
     15        makedev /dev/%DEVNAME% 0600 
    3416        next-event 
    3517} 
    3618 
    3719ACTION == add, DEVPATH is set { 
    38         makedev /dev/%DEVICENAME% 0644 
     20        makedev /dev/%DEVNAME% 0644 
    3921} 
    4022 
    41 ACTION == add, DEVPATH is set, DEVICENAME ~~ ^tty { 
    42         chmod 0666 /dev/%DEVICENAME% 
     23ACTION == add, DEVPATH is set, DEVNAME ~~ ^tty { 
     24        chmod 0666 /dev/%DEVNAME% 
    4325} 
    4426 
    45 ACTION == add, DEVPATH is set, DEVICENAME ~~ ^ppp { 
    46         chmod 0600 /dev/%DEVICENAME% 
     27ACTION == add, DEVPATH is set, DEVNAME ~~ ^ppp { 
     28        chmod 0600 /dev/%DEVNAME% 
    4729} 
    4830 
    4931ACTION == remove, DEVPATH is set, MAJOR is set, MINOR is set { 
    50         remove /dev/%DEVICENAME% 
     32        remove /dev/%DEVNAME% 
    5133} 
    5234 
Note: See TracChangeset for help on using the changeset viewer.