Skip to content

Commit

Permalink
match only Model name which start on line start.
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Nov 10, 2023
1 parent e959f1e commit d8d78b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildroot-external/patches/occu/0001-RaspberryMatic.patch
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
+ }
+ }
+
+ execCmd CPUMODEL {exec lscpu | grep -m1 "Model name:" | cut -d: -f2 | xargs echo -n}
+ execCmd CPUMODEL {exec lscpu | grep -m1 "^Model name:" | cut -d: -f2 | xargs echo -n}
+ execCmd NUMCPU {exec nproc}
+ execCmd LOADAVG {exec awk {{ printf $1 " " $2 " " $3 }} /proc/loadavg}
+ execCmd MEM {exec free -h | grep Mem: | awk {{ print $2 }}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ proc action_put_page {} {
}
}

execCmd CPUMODEL {exec lscpu | grep -m1 "Model name:" | cut -d: -f2 | xargs echo -n}
execCmd CPUMODEL {exec lscpu | grep -m1 "^Model name:" | cut -d: -f2 | xargs echo -n}
execCmd NUMCPU {exec nproc}
execCmd LOADAVG {exec awk {{ printf $1 " " $2 " " $3 }} /proc/loadavg}
execCmd MEM {exec free -h | grep Mem: | awk {{ print $2 }}}
Expand Down

0 comments on commit d8d78b9

Please sign in to comment.