mirror of https://github.com/OpenIPC/firmware.git
refactor coredump routine. split command chains, remove extra spaces.
parent
af4deed420
commit
8d439c98ea
general/package
goke-osdrv-gk710x/files/script
goke-osdrv-gk7205v200/files/script
hisilicon-osdrv-hi3516av100/files/script
hisilicon-osdrv-hi3516cv100/files/script
hisilicon-osdrv-hi3516cv200/files/script
hisilicon-osdrv-hi3516cv300/files/script
hisilicon-osdrv-hi3516cv500/files/script
hisilicon-osdrv-hi3516ev300/files/script
hisilicon-osdrv-hi3519v101/files/script
|
@ -13,7 +13,10 @@ load_majestic() {
|
|||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
[ -f /etc/coredump.conf ] && . /etc/coredump.conf
|
||||
[ "$coredump_enabled" ] && ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
if [ "$coredump_enabled" ]; 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" \
|
||||
-- $DAEMON_ARGS
|
||||
status=$?
|
||||
|
|
|
@ -13,7 +13,10 @@ load_majestic() {
|
|||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
[ -f /etc/coredump.conf ] && . /etc/coredump.conf
|
||||
[ "$coredump_enabled" ] && ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
if [ "$coredump_enabled" ]; 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" \
|
||||
-- $DAEMON_ARGS
|
||||
status=$?
|
||||
|
|
|
@ -13,7 +13,10 @@ load_majestic() {
|
|||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
[ -f /etc/coredump.conf ] && . /etc/coredump.conf
|
||||
[ "$coredump_enabled" ] && ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
if [ "$coredump_enabled" ]; 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" \
|
||||
-- $DAEMON_ARGS
|
||||
status=$?
|
||||
|
|
|
@ -13,7 +13,10 @@ load_majestic() {
|
|||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
[ -f /etc/coredump.conf ] && . /etc/coredump.conf
|
||||
[ "$coredump_enabled" ] && ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
if [ "$coredump_enabled" ]; 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" \
|
||||
-- $DAEMON_ARGS
|
||||
status=$?
|
||||
|
|
|
@ -13,7 +13,10 @@ load_majestic() {
|
|||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
[ -f /etc/coredump.conf ] && . /etc/coredump.conf
|
||||
[ "$coredump_enabled" ] && ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
if [ "$coredump_enabled" ]; 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" \
|
||||
-- $DAEMON_ARGS
|
||||
status=$?
|
||||
|
|
|
@ -13,7 +13,10 @@ load_majestic() {
|
|||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
[ -f /etc/coredump.conf ] && . /etc/coredump.conf
|
||||
[ "$coredump_enabled" ] && ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
if [ "$coredump_enabled" ]; 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" \
|
||||
-- $DAEMON_ARGS
|
||||
status=$?
|
||||
|
|
|
@ -13,7 +13,10 @@ load_majestic() {
|
|||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
[ -f /etc/coredump.conf ] && . /etc/coredump.conf
|
||||
[ "$coredump_enabled" ] && ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
if [ "$coredump_enabled" ]; 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" \
|
||||
-- $DAEMON_ARGS
|
||||
status=$?
|
||||
|
|
|
@ -13,7 +13,10 @@ load_majestic() {
|
|||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
[ -f /etc/coredump.conf ] && . /etc/coredump.conf
|
||||
[ "$coredump_enabled" ] && ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
if [ "$coredump_enabled" ]; 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" \
|
||||
-- $DAEMON_ARGS
|
||||
status=$?
|
||||
|
|
|
@ -13,7 +13,10 @@ load_majestic() {
|
|||
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
[ -f /etc/coredump.conf ] && . /etc/coredump.conf
|
||||
[ "$coredump_enabled" ] && ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern
|
||||
if [ "$coredump_enabled" ]; 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" \
|
||||
-- $DAEMON_ARGS
|
||||
status=$?
|
||||
|
|
Loading…
Reference in New Issue