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: e9ca1405b732720ff72d379e0262a78bfd2e7d53)

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>
(cherry picked from commit fa53f898eaba15dff030f9eadf86e5bca7d954fa)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
Martijn de Gouw authored and Steve Sakoman committed 2023-10-25 04:51:01 -10:00
1 parent 2b0c041e2c
commit e0cfa4c6a1
1 file changed
+2
+2
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