make libimp_control optional load on ingenic with majestic (#1261)

pull/1263/head
gtxaspec 2024-01-17 03:32:15 -08:00 committed by GitHub
parent a5f26973ab
commit ca3d0996a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ load_majestic() {
ulimit -c unlimited && echo "|/usr/sbin/sendcoredump.sh" >/proc/sys/kernel/core_pattern
fi
if [ "ingenic" = "$(ipcinfo -v)" ]; then
if [ "ingenic" = "$(ipcinfo -v)" ] && [ -f /etc/webui/imp.conf ]; then
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x /usr/bin/env -- \
LD_PRELOAD=/usr/lib/libimp_control.so $DAEMON_PATH/$DAEMON $DAEMON_ARGS
else