Ticket #9211: base-files.patch

File base-files.patch, 1.3 KB (added by Layne Edwards <ledwards@…>, 7 years ago)

update hotplug2 common rules to support tty hotplug

  • package/base-files/files/etc/hotplug2-common.rules

     
    66 
    77$include /etc/hotplug2-platform.rules 
    88 
    9 DEVICENAME ~~ (^null$|^full$|^ptmx$|^tty|^zero$|^gpio|^hvc) { 
     9DEVICENAME ~~ (^null$|^full$|^ptmx$|^zero$|^gpio|^hvc) { 
    1010        makedev /dev/%DEVICENAME% 0666 
    1111        next-event 
    1212} 
     
    1515        makedev /dev/net/%DEVICENAME% 0644 
    1616} 
    1717 
    18 DEVICENAME ~~ ^ppp { 
    19         makedev /dev/%DEVICENAME% 0600 
    20 } 
    21  
    2218DEVICENAME ~~ (^controlC[0-9]$|^pcmC[0-9]D[0-9]|^timer$) { 
    2319        makedev /dev/snd/%DEVICENAME% 0644 
    2420        next-event 
     
    3531 
    3632DEVICENAME == device-mapper { 
    3733        makedev /dev/mapper/control 0600 
     34        next-event 
    3835} 
    3936 
    40 DEVPATH is set { 
     37ACTION == add, DEVPATH is set { 
    4138        makedev /dev/%DEVICENAME% 0644 
    4239} 
    4340 
     41ACTION == add, DEVPATH is set, DEVICENAME ~~ ^tty { 
     42        chmod 0666 /dev/%DEVICENAME% 
     43} 
     44 
     45ACTION == add, DEVPATH is set, DEVICENAME ~~ ^ppp { 
     46        chmod 0600 /dev/%DEVICENAME% 
     47} 
     48 
     49ACTION == remove, DEVPATH is set, MAJOR is set, MINOR is set { 
     50        remove /dev/%DEVICENAME% 
     51} 
     52 
    4453FIRMWARE is set, ACTION == add { 
    4554        exec /sbin/hotplug-call firmware 
    4655        load-firmware /lib/firmware