]> git.ipfire.org Git - thirdparty/openwrt.git/commit
lldpd: fix error "sh: XXXms: bad number"
authorPaul Donald <newtwen@gmail.com>
Thu, 8 Feb 2024 22:37:13 +0000 (23:37 +0100)
committerRobert Marko <robimarko@gmail.com>
Tue, 17 Sep 2024 10:36:03 +0000 (12:36 +0200)
commit7542e7927b6ca472ae7c2f38e1e8705c17cccb9a
treec7581332f580134fafdf844bb2a068b28a1045aa
parentb88694869247cb1eaa9aca11a3d4e0f5f4f5ee6b
lldpd: fix error "sh: XXXms: bad number"

from commit 3ce909914a12647bec52bcee0a162dd6d158a4f6

The lldpd man page says that "configure lldp tx-interval" can
specify an interval value in milliseconds by appending a "ms" suffix to
the figure. Thus mandating string handling, and not integer comparison.

Tested on 22.03.5

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 79ee4cb0397eb9eae34369e33d66b5a1d837a652)
Link: https://github.com/openwrt/openwrt/pull/15299
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/services/lldpd/files/lldpd.init