From aa087fcc27ac6c3915bba3af7277e77a3fc24b4c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 1 Nov 2015 22:29:57 +0100 Subject: [PATCH] OWHW: persistent modem serial device names --- .../gsmk-owhw/odu-persistens-serial.rules | 19 +++++++++++++++++++ .../odu-persistens-serial.rules | 0 2 files changed, 19 insertions(+) create mode 100644 recipes-bsp/odu-static-devicenames/files/gsmk-owhw/odu-persistens-serial.rules rename recipes-bsp/odu-static-devicenames/files/{ => sysmocom-odu}/odu-persistens-serial.rules (100%) diff --git a/recipes-bsp/odu-static-devicenames/files/gsmk-owhw/odu-persistens-serial.rules b/recipes-bsp/odu-static-devicenames/files/gsmk-owhw/odu-persistens-serial.rules new file mode 100644 index 0000000..ca0ea6d --- /dev/null +++ b/recipes-bsp/odu-static-devicenames/files/gsmk-owhw/odu-persistens-serial.rules @@ -0,0 +1,19 @@ +# do not edit this file, it will be overwritten on update + +ACTION=="remove", GOTO="owhw_persistent_serial_end" +SUBSYSTEM!="tty", GOTO="owhw_persistent_serial_end" +KERNEL!="ttyUSB[0-9]*", GOTO="owhw_persistent_serial_end" + +KERNELS=="2-1.2:1.0", SYMLINK+="ttyModem1DM" +KERNELS=="2-1.2:1.1", SYMLINK+="ttyModem1NMEA" +KERNELS=="2-1.2:1.2", SYMLINK+="ttyModem1AT" +KERNELS=="2-1.2:1.3", SYMLINK+="ttyModem1PPP" +KERNELS=="2-1.2:1.4", SYMLINK+="ttyModem1NDIS" + +KERNELS=="2-1.3:1.0", SYMLINK+="ttyModem2DM" +KERNELS=="2-1.3:1.1", SYMLINK+="ttyModem2NMEA" +KERNELS=="2-1.3:1.2", SYMLINK+="ttyModem2AT" +KERNELS=="2-1.3:1.3", SYMLINK+="ttyModem2PPP" +KERNELS=="2-1.3:1.4", SYMLINK+="ttyModem2NDIS" + +LABEL="owhw_persistent_serial_end" diff --git a/recipes-bsp/odu-static-devicenames/files/odu-persistens-serial.rules b/recipes-bsp/odu-static-devicenames/files/sysmocom-odu/odu-persistens-serial.rules similarity index 100% rename from recipes-bsp/odu-static-devicenames/files/odu-persistens-serial.rules rename to recipes-bsp/odu-static-devicenames/files/sysmocom-odu/odu-persistens-serial.rules