Commit 21c7679
committed
add: dmesg logging; improve: make logs based on extracted suffix for dmesg pairing with logcats on action.sh
This commit uses grep -oE to extract the log suffix "-2" (action.sh) or "2" (post-fs-data.sh)
it allows the new dmesg logs to be paired with the corresponding log on the action script
and also allow a simplification on post-fs-data.sh by checking if the last log is not the last before returning to the starting log (3) and if the initial log is existent to add 1 to the last log which defaults to 2 (1+1) if it doesn't contain a suffix (first log)
while if the starting log is non existent or the last log was the finishing one before looping back (3) it will use no suffix to create the starting log
Signed-off-by: TheSillyOk <priv.ld@proton.me>1 parent bd78b2f commit 21c7679
1 file changed
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | | - | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
25 | 42 | | |
26 | 43 | | |
27 | 44 | | |
28 | 45 | | |
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
32 | | - | |
| 49 | + | |
0 commit comments