Changeset 9644


Ignore:
Timestamp:
2007-12-01T18:08:04+01:00 (10 years ago)
Author:
nbd
Message:

refactor hotplug2 rules, make sure that the default button rule is only used during the init (should fix #2772)

Location:
trunk/package
Files:
2 edited
1 copied

Legend:

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

    r9643 r9644  
    3434        next 
    3535} 
    36  
    37 SUBSYSTEM ~~ button { 
    38         exec kill -USR1 1 ; 
    39 } 
  • trunk/package/base-files/files/etc/hotplug2-init.rules

    r9314 r9644  
    1  
    2 DEVICENAME ~~ (null|full|ptmx|tty|zero) { 
    3         nothrottle 
    4         makedev /dev/%DEVICENAME% 0666 
    5         next 
    6 } 
    7  
    8 DEVICENAME ~~ (tun|tap[0-9]) { 
    9         nothrottle 
    10         makedev /dev/net/%DEVICENAME% 0644 
    11         next 
    12 } 
    13  
    14 DEVICENAME ~~ (ppp) { 
    15         nothrottle 
    16         makedev /dev/%DEVICENAME% 0600 
    17         next 
    18 } 
    19  
    20 DEVICENAME ~~ (controlC[0-9]|pcmC0D0*|timer) { 
    21         nothrottle 
    22         makedev /dev/snd/%DEVICENAME% 0644 
    23         next 
    24 } 
    25  
    26 DEVPATH is set { 
    27         nothrottle 
    28         makedev /dev/%DEVICENAME% 0644 
    29 } 
    30  
    31 FIRMWARE is set { 
    32         nothrottle 
    33         exec /sbin/hotplug-call firmware; 
    34         next 
    35 } 
     1$include /etc/hotplug2-common.rules 
    362 
    373SUBSYSTEM ~~ button { 
  • trunk/package/hotplug2/files/hotplug2.rules

    r8571 r9644  
    1 $include /etc/hotplug2-init.rules 
     1$include /etc/hotplug2-common.rules 
    22 
    33SUBSYSTEM ~~ (net|button|usb) { 
Note: See TracChangeset for help on using the changeset viewer.