Fixes issue in https://dev.openwrt.org/ticket/11368.

Signed-off-by: Adam Goode <a...@spicenitz.org>

---

Index: package/base-files/files/etc/hotplug2-common.rules
===================================================================
--- package/base-files/files/etc/hotplug2-common.rules (revision 31532)
+++ package/base-files/files/etc/hotplug2-common.rules (working copy)
@@ -1,53 +1,31 @@

-DEVICENAME ~~ (null|full|ptmx|zero|gpio|hvc) {
+DEVNAME ~~ (null|full|ptmx|zero|gpio|hvc) {
  nothrottle
- makedev /dev/%DEVICENAME% 0666
+ makedev /dev/%DEVNAME% 0666
  next
 }

-DEVICENAME ~~ (tun|tap[0-9]) {
+DEVNAME == mapper/control {
  nothrottle
- makedev /dev/net/%DEVICENAME% 0644
-}
-
-DEVICENAME ~~ (controlC[0-9]|pcmC0D0*|timer) {
- nothrottle
- makedev /dev/snd/%DEVICENAME% 0644
+ makedev /dev/%DEVNAME% 0600
  next
 }

-DEVICENAME ~~ (lp[0-9]) {
- nothrottle
- makedev /dev/%DEVICENAME% 0644
- next
-}
-
-DEVPATH is set, SUBSYSTEM ~~ (input) {
- nothrottle
- makedev /dev/input/%DEVICENAME% 0644
-}
-
-DEVICENAME == device-mapper {
- nothrottle
- makedev /dev/mapper/control 0600
- next
-}
-
 ACTION == add, DEVPATH is set {
  nothrottle
- makedev /dev/%DEVICENAME% 0644
+ makedev /dev/%DEVNAME% 0644
 }

-ACTION == add, DEVPATH is set, DEVICENAME ~~ ^tty {
- chmod 0666 /dev/%DEVICENAME%
+ACTION == add, DEVPATH is set, DEVNAME ~~ ^tty {
+ chmod 0666 /dev/%DEVNAME%
 }

-ACTION == add, DEVPATH is set, DEVICENAME ~~ ^ppp {
- chmod 0600 /dev/%DEVICENAME%
+ACTION == add, DEVPATH is set, DEVNAME ~~ ^ppp {
+ chmod 0600 /dev/%DEVNAME%
 }

 ACTION == remove, DEVPATH is set, MAJOR is set, MINOR is set {
- remove /dev/%DEVICENAME%
+ remove /dev/%DEVNAME%
 }

 FIRMWARE is set, ACTION == add {
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to