mirror of https://github.com/OpenIPC/firmware.git
rename coredump config to match webui settings. check if file exists.
parent
50f8ab4b19
commit
916b96f27a
|
@ -12,7 +12,7 @@ load_majestic() {
|
|||
printf 'Starting %s: ' "$DAEMON"
|
||||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then
|
||||
if [ -f /etc/coredump.conf ] && [ $(grep ^savedumps /etc/coredump.conf | cut -d= -f2) == "true" ]; then
|
||||
ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
fi
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
|
||||
|
|
|
@ -12,7 +12,7 @@ load_majestic() {
|
|||
printf 'Starting %s: ' "$DAEMON"
|
||||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then
|
||||
if [ -f /etc/coredump.conf ] && [ $(grep ^savedumps /etc/coredump.conf | cut -d= -f2) == "true" ]; then
|
||||
ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
fi
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
|
||||
|
|
|
@ -12,7 +12,7 @@ load_majestic() {
|
|||
printf 'Starting %s: ' "$DAEMON"
|
||||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then
|
||||
if [ -f /etc/coredump.conf ] && [ $(grep ^savedumps /etc/coredump.conf | cut -d= -f2) == "true" ]; then
|
||||
ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
fi
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
|
||||
|
|
|
@ -12,7 +12,7 @@ load_majestic() {
|
|||
printf 'Starting %s: ' "$DAEMON"
|
||||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then
|
||||
if [ -f /etc/coredump.conf ] && [ $(grep ^savedumps /etc/coredump.conf | cut -d= -f2) == "true" ]; then
|
||||
ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
fi
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
|
||||
|
|
|
@ -12,7 +12,7 @@ load_majestic() {
|
|||
printf 'Starting %s: ' "$DAEMON"
|
||||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then
|
||||
if [ -f /etc/coredump.conf ] && [ $(grep ^savedumps /etc/coredump.conf | cut -d= -f2) == "true" ]; then
|
||||
ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
fi
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
|
||||
|
|
|
@ -12,7 +12,7 @@ load_majestic() {
|
|||
printf 'Starting %s: ' "$DAEMON"
|
||||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then
|
||||
if [ -f /etc/coredump.conf ] && [ $(grep ^savedumps /etc/coredump.conf | cut -d= -f2) == "true" ]; then
|
||||
ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
fi
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
|
||||
|
|
|
@ -12,7 +12,7 @@ load_majestic() {
|
|||
printf 'Starting %s: ' "$DAEMON"
|
||||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then
|
||||
if [ -f /etc/coredump.conf ] && [ $(grep ^savedumps /etc/coredump.conf | cut -d= -f2) == "true" ]; then
|
||||
ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
fi
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
|
||||
|
|
|
@ -12,7 +12,7 @@ load_majestic() {
|
|||
printf 'Starting %s: ' "$DAEMON"
|
||||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then
|
||||
if [ -f /etc/coredump.conf ] && [ $(grep ^savedumps /etc/coredump.conf | cut -d= -f2) == "true" ]; then
|
||||
ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
fi
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
|
||||
|
|
|
@ -12,7 +12,7 @@ load_majestic() {
|
|||
printf 'Starting %s: ' "$DAEMON"
|
||||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then
|
||||
if [ -f /etc/coredump.conf ] && [ $(grep ^savedumps /etc/coredump.conf | cut -d= -f2) == "true" ]; then
|
||||
ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
fi
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
|
||||
|
|
Loading…
Reference in New Issue