~louis/crashdc/trunk

« back to all changes in this revision

Viewing changes to crashdc.initd

  • Committer: louis_bouchard
  • Date: 2010-12-21 16:08:25 UTC
  • Revision ID: svn-v4:43a7f545-b209-0410-ba44-c04536a9f2ae:trunk:199
Bugfix for 3013715, ongoing RHEL6 dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
 
79
79
generate_crashdc()
80
80
{
81
 
coredir=`ls -rtd ${VMCOREDIR}/2* | cut -d\  -f2 | tail -1`
 
81
coredir=`ls -rtd ${VMCOREDIR}/*2[0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]:[0-9][0-9]* | cut -d\  -f2 | tail -1`
82
82
 
83
83
        kver=$(uname -r)
84
84
        case $(find_distro) in
85
 
                rhel5) namelist=/usr/lib/debug/lib/modules/${kver}/vmlinux
 
85
                rhel[56]) namelist=/usr/lib/debug/lib/modules/${kver}/vmlinux
86
86
                        ;;
87
87
                sles10) namelist=/boot/vmlinux-${kver}
88
88
                        #
143
143
check_status()
144
144
{
145
145
 
146
 
ls -rtd ${VMCOREDIR}/2* | while read Line;do
 
146
ls -rtd ${VMCOREDIR}/*2[0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]:[0-9][0-9]* | while read Line;do
147
147
        crashdata=$(ls ${Line}/crash-data*txt 2> /dev/null)
148
148
        echo -n $Line :
149
149
        if [[ -z $crashdata ]];then