Skip to content

Comments

hotplug-dispatch: redirect output to /dev/null#19

Merged
openwrt-bot merged 3 commits intoopenwrt:masterfrom
feckert:pr/hotplug-dispatch-redirect
Feb 9, 2026
Merged

hotplug-dispatch: redirect output to /dev/null#19
openwrt-bot merged 3 commits intoopenwrt:masterfrom
feckert:pr/hotplug-dispatch-redirect

Conversation

@feckert
Copy link
Member

@feckert feckert commented Apr 8, 2025

@dangowrt
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'.

@feckert
Copy link
Member Author

feckert commented May 15, 2025

@dangowrt @nbd168 friendly ping

@dangowrt dangowrt force-pushed the pr/hotplug-dispatch-redirect branch from eaa3616 to 96dc0f7 Compare February 9, 2026 10:56
AlexeyAndKartashov and others added 3 commits February 9, 2026 10:59
Fix arguments validation (broken access to blob_attr property)

Fixes: 03aab02 ("add a ubus handler that allows sending signals to processes")
Signed-off-by: Kartashov Alexey <ya.antixrist@gmail.com>
[improved commit message]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
As documented in the readdir man page, support for d_type varies by
filesystem.  The ISO 9660 filesystem used in the x86 target's bootable
ISO images always sets d_type to DT_UNKNOWN.  Fall back to checking
S_ISDIR(st_mode) when d_type is DT_UNKNOWN.

Fixes: 08938fe ("procd: add hotplug-call dispatcher")
Signed-off-by: Jeffrey Bosboom <jbosboom@jeffreybosboom.com>
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>
@dangowrt dangowrt force-pushed the pr/hotplug-dispatch-redirect branch from 96dc0f7 to 64f97ff Compare February 9, 2026 11:07
@openwrt-bot openwrt-bot merged commit 64f97ff into openwrt:master Feb 9, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants