lldpd: fix restart
authorPaul Donald <newtwen+github@gmail.com>
Tue, 2 Apr 2024 11:42:20 +0000 (13:42 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 Apr 2024 11:20:06 +0000 (13:20 +0200)
commit8cf1dce428b11740d8335d167b9c1f297d1752d0
treeac8ef1b3153ca2f23add0e6432312ad73dd227e1
parent07918e6612633d550197512a1b15c72867ef80e3
lldpd: fix restart

Redirection broke in 5364fe0f01ca ("lldpd: shellcheck fixes")

redirects to /dev/null shall be handled correctly (i.e. last).

This fixes these errors on `/etc/init.d/lldpd reload`:

2024-03-16T20:39:00 [WARN/lldpctl] unknown command from argument 1: `/dev/null`
2024-03-16T20:39:00 [WARN/lldpctl] unknown command from argument 1: `/dev/null`
2024-03-16T20:39:00 [WARN/lldpctl] unknown command from argument 1: `/dev/null`
2024-03-16T20:39:00 [WARN/lldpctl] unknown command from argument 1: `/dev/null`

Tested-on: 22.03.6
Fixes: 5364fe0f01ca ("lldpd: shellcheck fixes")
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
[ improve commit description, add fixes tag ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/network/services/lldpd/files/lldpd.init