Initial commit
This commit is contained in:
Executable
+36
@@ -0,0 +1,36 @@
|
||||
From a351cc544f6e949a26b53e294aa2e496622feba6 Mon Sep 17 00:00:00 2001
|
||||
From: roly <Rolyli.Li@luxshare-ict.com>
|
||||
Date: Fri, 17 Jan 2025 10:11:24 +0800
|
||||
Subject: [PATCH] Add persustent log
|
||||
|
||||
---
|
||||
tools/dreport.d/plugins.d/persistent_log | 17 +++++++++++++++++
|
||||
1 file changed, 17 insertions(+)
|
||||
create mode 100755 tools/dreport.d/plugins.d/persistent_log
|
||||
|
||||
diff --git a/tools/dreport.d/plugins.d/persistent_log b/tools/dreport.d/plugins.d/persistent_log
|
||||
new file mode 100755
|
||||
index 0000000..fc4ef54
|
||||
--- /dev/null
|
||||
+++ b/tools/dreport.d/plugins.d/persistent_log
|
||||
@@ -0,0 +1,17 @@
|
||||
+#!/bin/bash
|
||||
+#
|
||||
+# config: 24 25
|
||||
+# @brief: Collect persistent log.
|
||||
+#
|
||||
+
|
||||
+# shellcheck source=/dev/null
|
||||
+. "$DREPORT_INCLUDE"/functions
|
||||
+
|
||||
+desc="persistent log"
|
||||
+path="/var/persistent/log/"
|
||||
+files=$(ls $path)
|
||||
+
|
||||
+for file_name in $files
|
||||
+do
|
||||
+ add_copy_file "$path$file_name" "$desc"
|
||||
+done
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI:append = " \
|
||||
file://0001-Add-persustent-log.patch \
|
||||
"
|
||||
Reference in New Issue
Block a user