ryandesign
Occasional Visitor
I'm curious why the busybox in asuswrt merlin (382.1_1, at least) does not contain "mkfifo".
According to busybox.net, "mkfifo" was added in busybox 0.39 in 1999; asuswrt merlin allegedly contains busybox 1.25.1 from 2016.
(I am trying to make my router's custom scripts log to a file as well as to stdout and stderr. The usual one-liner to do that uses bashisms and isn't compatible with busybox's sh. The longer alternative implementation I found involves using "mkfifo" but that doesn't exist on the router. busybox does have "mknod", and I can substitute "mkfifo foo" with "mknod foo p", which works fine on the router, but that's not compatible with the macOS version of "mknod" so it makes my scripts less portable and harder to test on my Mac.)
Code:
# mkfifo
-sh: mkfifo: not found
# busybox mkfifo
mkfifo: applet not found
According to busybox.net, "mkfifo" was added in busybox 0.39 in 1999; asuswrt merlin allegedly contains busybox 1.25.1 from 2016.
(I am trying to make my router's custom scripts log to a file as well as to stdout and stderr. The usual one-liner to do that uses bashisms and isn't compatible with busybox's sh. The longer alternative implementation I found involves using "mkfifo" but that doesn't exist on the router. busybox does have "mknod", and I can substitute "mkfifo foo" with "mknod foo p", which works fine on the router, but that's not compatible with the macOS version of "mknod" so it makes my scripts less portable and harder to test on my Mac.)