busybox: Set PATH in syslog initscript

This script is not always called with /sbin and /usr/sbin in the PATH
already, for example when called via ssh. Explicitly set PATH to make
sure it includes /sbin and /usr/sbin since that's where start-stop-daemon
is located.

(From OE-Core rev: fa53f898eaba15dff030f9eadf86e5bca7d954fa)

Signed-off-by: Martijn de Gouw <martijn.de.gouw@prodrive-technologies.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Martijn de Gouw
2023-10-05 21:37:49 +02:00
committed by Richard Purdie
parent ba7ac22f2e
commit 0fb1ff0ffb

View File

@@ -10,6 +10,8 @@
set -e
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
if [ -f /etc/syslog-startup.conf ]; then
. /etc/syslog-startup.conf
LOG_LOCAL=0