mirror of
https://github.com/CopterExpress/clover.git
synced 2026-06-06 09:39:32 +00:00
selfcheck: Print board model (/proc/device-tree/model) (#209)
This commit is contained in:
committed by
GitHub
parent
0fa7e0e496
commit
df78f17efb
@@ -759,8 +759,17 @@ def check_rpi_health():
|
||||
failure(flag_description[1])
|
||||
|
||||
|
||||
@check('Board')
|
||||
def check_board():
|
||||
try:
|
||||
info('%s', open('/proc/device-tree/model').readline())
|
||||
except IOError:
|
||||
info('could not open /proc/device-tree/model, not a Raspberry Pi?')
|
||||
|
||||
|
||||
def selfcheck():
|
||||
check_image()
|
||||
check_board()
|
||||
check_clover_service()
|
||||
check_network()
|
||||
check_fcu()
|
||||
|
||||
Reference in New Issue
Block a user