nut: fix typo in nut_serial.hotplug (fix #21504)
authorSebastian Hamann <[email protected]>
Tue, 19 Aug 2025 11:53:27 +0000 (13:53 +0200)
committerHannu Nyman <[email protected]>
Sun, 24 Aug 2025 18:48:56 +0000 (21:48 +0300)
Signed-off-by: Sebastian Hamann <[email protected]>
net/nut/files/nut_serial.hotplug

index fa3bafeb8aa0388ff92f5de747ec0959e3cf2b63..4bab3b6944d1db1bf35784448796c3fe6ac619cb 100644 (file)
@@ -28,7 +28,7 @@ nut_on_hotplug_add() {
 
 [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ] && {
        # On add of a serial port with name ttyUSB*
-       [ -z "${DEVNAME%ttyUSB*}" ] && nut_on_hutplug_add
+       [ -z "${DEVNAME%ttyUSB*}" ] && nut_on_hotplug_add
        # On add of a serial port with name ttyAMA*
-       [ -z "${DEVNAME%ttyAMA*}" ] && nut_on_hutplug_add
+       [ -z "${DEVNAME%ttyAMA*}" ] && nut_on_hotplug_add
 }