mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
nut: fix typo in nut_serial.hotplug (fix #21504)
Signed-off-by: Sebastian Hamann <code@ares-macrotechnology.com>
This commit is contained in:
committed by
Hannu Nyman
parent
114f412408
commit
012cfe5985
@@ -28,7 +28,7 @@ nut_on_hotplug_add() {
|
|||||||
|
|
||||||
[ "$ACTION" = "add" ] && [ -n "$DEVNAME" ] && {
|
[ "$ACTION" = "add" ] && [ -n "$DEVNAME" ] && {
|
||||||
# On add of a serial port with name ttyUSB*
|
# 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*
|
# On add of a serial port with name ttyAMA*
|
||||||
[ -z "${DEVNAME%ttyAMA*}" ] && nut_on_hutplug_add
|
[ -z "${DEVNAME%ttyAMA*}" ] && nut_on_hotplug_add
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user