Skip to content

Commit 18a571c

Browse files
authored
Merge pull request #16 from OS2borgerPC/RPI-compatible-memory-detection
RPI kompatibel aflæsning af memeory
2 parents 92a6c58 + 478d0ae commit 18a571c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/register_new_os2borgerpc_client.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ while true; do
169169
[ -z "$CPUS" ] && CPUS="Identification failed"
170170
set_os2borgerpc_config pc_cpus "$CPUS"
171171

172-
RAM="$(LANG=c lsmem | grep "Total online" | cut --delimiter ':' --fields 2 | xargs)"
172+
RAM="$(free -h | awk '/^Mem:/ {print $2}')"
173173
[ -z "$RAM" ] && RAM="Identification failed"
174174
RAM=${RAM:0:100}
175175
set_os2borgerpc_config pc_ram "$RAM"

0 commit comments

Comments
 (0)