File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,7 +127,8 @@ function collect_support_info()
127127 CPU_ARCH=" $( uname -m ) "
128128 CPU_BITS=" $( getconf LONG_BIT ) "
129129 CPU_TOTAL=" $( nproc ) "
130- MEM_TOTAL=" $( free -h | grep Mem | gawk ' {print $2}' ) "
130+ MEMORY_INFO=" $( free -h ) "
131+ MEM_TOTAL=" $( echo " ${MEMORY_INFO} " | grep Mem | gawk ' {print $2}' ) "
131132 VERSION_FILE=" ${ALLSKY_CONFIG} /piversion"
132133 if [[ -s ${VERSION_FILE} ]]; then
133134 PI_MODEL=" $( < " ${VERSION_FILE} " ) "
@@ -136,10 +137,6 @@ function collect_support_info()
136137 fi
137138 # ##
138139
139- # ## Memry Info
140- MEMORY_INFO=" $( free ) "
141- # ##
142-
143140 # ## Network Info
144141 # obfuscate IP, MAC and ipv6 addresses
145142 NETWORKS=" $( ip a |
@@ -182,7 +179,7 @@ function collect_support_info()
182179 # ##
183180
184181 # ## pi Camera stuff
185- PI_CAMERAS =" $( libcamera-still --list-cameras 2> /dev/null ) "
182+ RPI_CAMERAS =" $( libcamera-still --list-cameras 2> /dev/null ) "
186183 # ##
187184
188185 # ## get installed package information
@@ -259,8 +256,8 @@ function generate_support_info()
259256
260257 local LIBCAMERA_FILE=" ${TEMP_DIR} /libcamera.txt"
261258 {
262- print_heading " Libcamera Devices "
263- print " ${PI_CAMERAS } "
259+ print_heading " Libcamera Cameras "
260+ print " ${RPI_CAMERAS } "
264261 } > " ${LIBCAMERA_FILE} "
265262
266263 local i2C_FILE=" ${TEMP_DIR} /i2c.txt"
You can’t perform that action at this time.
0 commit comments