c8d4b55130
Move content from stx-utils into stx-integ or stx-update Packages will be relocated to stx-update: enable-dev-patch extras stx-integ: config-files/ io-scheduler filesystem/ filesystem-scripts grub/ grubby logging/ logmgmt tools/ collector monitor-tools tools/engtools/ hostdata-collectors parsers utilities/ build-info branding (formerly wrs-branding) platform-util Change-Id: Iefa35db5a644b8ca0f1962e6c4cbbc97213b69e9 Story: 2002801 Task: 22687 Signed-off-by: Scott Little <scott.little@windriver.com>
31 lines
650 B
Bash
31 lines
650 B
Bash
#! /bin/bash
|
|
#
|
|
# Copyright (c) 2016 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
|
|
# Loads Up Utilities and Commands Variables
|
|
|
|
source /usr/local/sbin/collect_parms
|
|
source /usr/local/sbin/collect_utils
|
|
|
|
SERVICE="crash"
|
|
LOGFILE="${extradir}/${SERVICE}.info"
|
|
|
|
|
|
CRASHDIR="/var/crash"
|
|
|
|
echo "${hostname}: Kernel Crash Info .: ${LOGFILE}"
|
|
|
|
COMMAND="find ${CRASHDIR}"
|
|
delimiter ${LOGFILE} "${COMMAND}"
|
|
${COMMAND} >> ${LOGFILE} 2>>${COLLECT_ERROR_LOG}
|
|
|
|
COMMAND="rsync -a --include=*.txt --include=*/ --exclude=* ${CRASHDIR} ${basedir}/var/"
|
|
delimiter ${LOGFILE} "${COMMAND}"
|
|
${COMMAND} >> ${LOGFILE} 2>>${COLLECT_ERROR_LOG}
|
|
|
|
exit 0
|