Developing lightweight computation at the DSG edge

Commit b9c5e0fa authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

Fix #331. Use /tmp/sysinfo/board_name to generate the device MD5 hash

parent 7e63fc15
......@@ -7,7 +7,7 @@ QMP_PATH="/etc/qmp"
QMP_VERSION="$QMP_PATH/qmp.version"
qmp_update_get_local_hash() {
device_hash="$(cat /proc/cpuinfo | egrep "^vendor_id|^model name|^machine" | md5sum | awk '{print $1}')"
device_hash="$( ( [ -f /tmp/sysinfo/board_name ] && cat /tmp/sysinfo/board_name || cat /proc/cpuinfo | egrep "^vendor_id|^model name|^machine") | md5sum | awk '{print $1}' )"
qmp_debug "My local device hash is $device_hash"
echo "$device_hash"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment