hotplug-dispatch: redirect output to /dev/null
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 8 Apr 2025 10:01:21 +0000 (12:01 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 9 Feb 2026 11:06:54 +0000 (11:06 +0000)
commit64f97ffb6a26582ab0deac87c653723566efe9d9
tree364190ecdda39458deb9db905a8475fb75c859e4
parentc4e9859876d5db7d8d69e8dc92bc7fde44ee96ec
hotplug-dispatch: redirect output to /dev/null

During the hotplug call via the procd, a list is first created with the files
in the hotplug.d directory. After that the scripts are then executed in
lexical order. However, if a script is deleted after the list has been
created, the following message is displayed on the tty console.

Command failed: Not found
/bin/sh: .: line 1: can't open '/etc/hotplug.d/ntp/25-travelmate_ntp': No such file or directory

So that the message is not displayed in the tty console the 'stderr' must be
redirected to '/dev/null'.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
hotplug-dispatch.c