#!/bin/bash # # config: 24 25 # @brief: Collect OBMC console log. # . $DREPORT_INCLUDE/functions default_desc="OBMC console log" for file_name in /var/log/obmc-console*; do desc=${default_desc} if [ "$file_name" != "/var/log/obmc-console.log" ]; then name=${file_name/\/var\/log\/obmc-console-/} name=${name/.log/} desc="OBMC Console $name log" fi add_copy_file "$file_name" "$desc" done