self-diagnostics: 1.0.2

This commit is contained in:
Vivek Kumar Dutta 2023-11-07 12:42:17 +05:30
parent f35b198c05
commit 33cd29a47d
No known key found for this signature in database
GPG key ID: 65C818099F37097D
2 changed files with 10 additions and 5 deletions

View file

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=self-diagnostics
PKG_VERSION:=1.0.1
PKG_VERSION:=1.0.2
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0-only

View file

@ -188,9 +188,10 @@ exec_spec()
exec_timeout=$TIMEOUT
fi
log "Executing $cmd with timeout $exec_timeout"
echo "##################" >> $export_path
echo $description >> $export_path
echo "##################" >> $export_path
echo "##########################################" >> $export_path
echo "# $description #">> $export_path
echo "# Exec [$cmd], timeout [$exec_timeout] #" >> $export_path
echo "##########################################" >> $export_path
if [ "$VERBOSE" -eq 1 ]; then
if [[ "$cmd" == *"logread "* ]]; then
eval timeout ${exec_timeout} $cmd 2>&1 | tee -a $export_path
@ -203,7 +204,8 @@ exec_spec()
eval timeout ${exec_timeout} $cmd >> $export_path 2>&1
rc=$?
fi
echo "######## Execution return code $rc ######" >> $export_path
if [ "$rc" -eq 0 ]; then
log "Execution [$cmd] completed"
else
@ -216,6 +218,9 @@ exec_spec()
done
json_select ..
fi
log "Handling of $json_file done"
log ""
}
generate_module()