Skip to content

Fix Turris 1.x detection

Josef Schlehofer requested to merge fix/turris1x into master

This fixes behavior when command hw-type failed to detect which model are Turris 1.x routers.

Before:

root@turris:~# crypto-wrapper hw-type
crypto-wrapper: error: Unknown device model: 'Turris 1.x'

After:

root@turris:~# crypto-wrapper hw-type
atsha

The model is taken from /tmp/sysinfo/model (row 15), this returns:

root@turris:~# cat /tmp/sysinfo/model
Turris 1.x

Please check this on HBK branch, I encountered it on HBL branch.

Merge request reports